[TYPO3-RTE] New behaviour of fontstyle and fontsize features
Stanislas Rolland
typo3 at sjbr.ca
Fri Oct 10 19:25:47 CEST 2008
Hi,
In various browsers, the execCommand method used by htmlArea RTE
generates font tags when font setting commands are used.
A new patch was committed to TYPO3 core trunk (revision 4306) for
inclusion in TYPO3 4.3. The patch overrides DefaultFont extension with
new SelectFont extension that avoids the use of execCommand method.
fontstyle and fontsize dropdowns 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.
Regards,
Stanislas
More information about the TYPO3-project-rte
mailing list