Project

General

Profile

Actions

Bug #66401

closed

span.allowedAttribs not taken into account

Added by Marieke de Bruin over 9 years ago. Updated about 7 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.


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Bug #104520: RteHtmlParser does not allow custom attribute configuration for <span> tags as children of a <p> tagNew2024-08-01

Actions
Actions #1

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?

Actions #2

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

Actions #3

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
Actions

Also available in: Atom PDF