Hello,
is there a way to use the font tag inplace of the span tag as output for the ckeditor.
old:
with the font tag:
thanks
is there a way to use the font tag inplace of the span tag as output for the ckeditor.
old:
<p><span style="font-size: 48px;">test</span></p>
with the font tag:
<p><font size="48px">test</font ></p>
thanks
Re: Using Font tag inplace of span
Hi Robs,
You may have your reasons for wanting this, but I thought I'd point out that the HTML <font> tag is deprecated (meaning no longer really used in current incarnations of WW3 specifications.) Yes, the tag will still probably work, in most modern browsers rendering "transitional" HTML pages, (but it will not work on "strict" DOCTYPE HTML pages or on XHTML pages.) Also, the pages may not validate and at some point, browser support for rendering deprecated tags is likely to disappear.
All of the font attributes in CKEditor are now handled as CSS style attributes. So, if you want to change other font attributes, you would also need to change the way other font attributes are handled, substituting the old deprecated style for the modern CSS equivalent.
Testing 123, with a red foreground (font) color, and font size of 14px:
And, I believe that I read somewhere on this site that the developers are working on concatenating the style attributes within a single <span> tag:
So, if the developers succeed in changing the HTML output as above, it would probably clash with your modified HTML output, and you would have to re-do your code modifications.
You'd have to change the source code to output each of the font "style" attributes and when a new version of the CKEditor widget comes out, you'd need to re-do the code to change it again to the "old way."
Specifically which source code file(s) you'd have to modify, and how to do this - that's beyond my understanding level of the code at this point. But, I thought it might be valuable for you to know why it is not currently done the old, deprecated way. So you know that by modifying the (open) source code, it could be done, but you also know why it is not a good idea.
Dennis