Bug #14448

t3lib_parsehtml_proc removes style attibute on span tags.

Added by Stanislas Rolland over 8 years ago. Updated almost 7 years ago.

Status:Closed Start date:2004-12-11
Priority:Should have Due date:
Assignee:Stanislas Rolland % Done:

0%

Category:Backend API
Target version:-
TYPO3 Version:4.0 Complexity:
PHP Version:4
Votes: 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)

History

Updated by Peter Niederlag over 8 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 over 8 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 over 7 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

Also available in: Atom PDF