Project

General

Profile

Actions

Bug #66401

closed

span.allowedAttribs not taken into account

Added by Marieke de Bruin about 9 years ago. Updated over 6 years ago.

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

0%

Estimated time:
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.

Actions #1

Updated by Riccardo De Contardi over 7 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?

Actions #2

Updated by Mathias Schreiber over 6 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

Actions

Also available in: Atom PDF