Bug #66401

span.allowedAttribs not taken into account

Added by Marieke de Bruin over 4 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2015-04-13
Due date:
% Done:

0%

TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Own defined attibutes are not working in a <span> tag although they are configured in 'span.allowedAttribs' in pageTSConfig

It lookes like that only the attributes that are defined here:https://forge.typo3.org/projects/typo3cms-core/repository/revisions/master/entry/typo3/sysext/core/Classes/Html/RteHtmlParser.php#L1196 are taken into account and the span.allowedAttribs in pageTSConfig is not taken into account.

History

#1 Updated by Riccardo De Contardi about 3 years ago

this issue is still present on 7.6.11;

To test it:

1) set in TSConfig

RTE.default.proc.entryHTMLparser_db.tags.span.allowedAttribs = id, title, dir, lang, xml:lang, class, itemscope, itemtype, itemprop,style,aria-hidden

2) in RTEHtmlarea, add somewhere a span with this attributes:

<span style="background:red" aria-hidden="true">LOREM</span>

Result:

only the style attribute will survive on frontend.

Note that if you use the RTEHtmlarea button "Insert tag", you will be presented a very long list of attributes (like onFocus, onBlur, onClick, onMouseOver....) but the same limitation described in this issue applies, so why listing them?

#2 Updated by Mathias Schreiber about 2 years ago

  • Status changed from New to Closed

HTMLArea is no longer supported by TYPO3.
You can open up new issues here https://github.com/FriendsOfTYPO3/rtehtmlarea.

Cheers
Mathias

Also available in: Atom PDF