Project

General

Profile

Actions

Bug #14448

closed

t3lib_parsehtml_proc removes style attibute on span tags.

Added by Stanislas Rolland almost 20 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
Backend API
Target version:
-
Start date:
2004-12-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)

Actions #1

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

Actions #2

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.

Actions #3

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

Actions

Also available in: Atom PDF