Bug #66401
closedspan.allowedAttribs not taken into account
0%
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.
Updated by Riccardo De Contardi about 8 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?
Updated by Mathias Schreiber about 7 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
Updated by Garvin Hicking 4 months ago
- Related to Bug #104520: RteHtmlParser does not allow custom attribute configuration for <span> tags as children of a <p> tag added