[TYPO3-core] FYI: Added feature #7970: htmlArea RTE: fontstyle and fontsize should not use deprecated font tag
Stanislas Rolland
typo3 at sjbr.ca
Fri Oct 10 19:09:59 CEST 2008
FYI: The attached SVN patch was committed.
Type:
Feature
Problem:
In various browsers, the execCommand method used by the RTE generates
font tags when font setting commands are used.
Solution:
The attached patch overrides DefaultFont extension with new SelectFont
extension that will avoid the use of execCommand method.
fontstyle and fontsize buttons will then wrap highlighted text with span
tag with style attribute in all browsers. They will also allow to
set/unset the font-family and the font-size properties of the style
attribute on any element in which the cursor is positioned or which is
selected through the status bar at the bottom of the RTE editing area.
This is behaviour similar to textcolor, bgcolor and textstyle.
Font sizes become configurable just like font faces using RTE.fontSizes
array and RTE.default.buttons.fontsize.addItems property.
font setting features are enabled only if the EM configuration variable
"Enable features that use the style attribute" is set. Appropriate proc
options are then configured.
Opera-specific issue: If a font family is not installed on the system of
the author, Opera silently removes it from any list of fonts assigned to
the font-family property of the style attribute. I could find no
workaround for this issue.
This completes the eradication of RTE features that generated font tags.
Bugtracker references:
http://bugs.typo3.org/view.php?id=3417
http://bugs.typo3.org/view.php?id=7970
http://bugs.typo3.org/view.php?id=7974
Branches:
trunk (revision 4306)
Regards,
Stanislas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rtehtmlarea_feature_7970.patch
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20081010/5234cb33/attachment-0001.txt
More information about the TYPO3-team-core
mailing list