Bug #14448
closedt3lib_parsehtml_proc removes style attibute on span tags.
0%
Description
Function getKeepTags of system class t3lib_parsehtml_proc removes style attibute on span tags.
The attribute is required for RTE editing in Mozilla/Firefox native mode.
The attribute is required for RTE color formatting in Mozilla/Firefox (whatever the mode).
There appears to be no way to configure this behavior.
Extension rtehtmlarea will extend this system class and override function getKeepTags until the class is corrected.
Some user list posts mention property RTE.default.proc.HTMLparser_db.tags.span.allowedAttribs
At the present time, such property is ignored.
(issue imported from #M605)
Updated by Peter Niederlag almost 20 years ago
I think 'tags.span.allowedAttribs' is an unnecessary hardcoded default-value for in t3ib_htmlparser_proc. :-<
Usually it can be ovveriden by 'default.proc.HTMLparser_db.tags.span.allowdAttribs = class, style'.
Anyway this default should either go into Documentation:
http://typo3.org/documentation/document-library/doc_core_api/Page_TSconfig-1/
or should be removed(prefered) imho
Updated by Stanislas Rolland almost 20 years ago
I think that 'default.proc.HTMLparser_db.tags.span.allowedAttribs = class, style' has not effect and is ignored by t3lib_parsehtml_proc.
Updated by Stanislas Rolland almost 19 years ago
I was wrong. You can override these hardcoded defaults with:
RTE.default.proc.HTMLparser_db.tags.span.allowedAttribs = id, class, style, title, alt