Project

General

Profile

Actions

Bug #96485

open

CKEditor : allowAttribs in YAML not taken into account / attributes are removed at save

Added by RVVN no-lastname-given over 2 years ago. Updated about 1 year ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2022-01-07
Due date:
% Done:

0%

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

Description

Hi,

the following YAML configuration for CKEditor is not taken into account :

processing:
  HTMLparser_db:
    tags:
      a:
        allowedAttribs:
          - class
          - title
          - target
          - href

All attributes are removed when saving content element.

I've found the source of this issue in the HtmlParser (line 481) : https://github.com/TYPO3/typo3/blob/10.4/typo3/sysext/core/Classes/Html/HtmlParser.php#L481

The key '_allowedAttribs' doesn't exist.

Replacing it with 'allowedAttribs.' fixes the problem.


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Bug #97499: Wrong notation for value of allowedAttribs in Processing.yamlUnder Review2022-04-28

Actions
Actions

Also available in: Atom PDF