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 12 months 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 #1

Updated by RVVN no-lastname-given over 2 years ago

  • Description updated (diff)
Actions #2

Updated by Eric Harrer almost 2 years ago

  • Related to Bug #97499: Wrong notation for value of allowedAttribs in Processing.yaml added
Actions #3

Updated by Gerrit Code Review almost 2 years ago

  • Status changed from New to Under Review

Patch set 8 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74473

Actions #4

Updated by Gerrit Code Review almost 2 years ago

Patch set 9 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74473

Actions #5

Updated by Gerrit Code Review almost 2 years ago

Patch set 10 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74473

Actions #6

Updated by Gerrit Code Review almost 2 years ago

Patch set 11 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74473

Actions #7

Updated by Riccardo De Contardi over 1 year ago

  • Category set to RTE (rtehtmlarea + ckeditor)
Actions #8

Updated by Gerrit Code Review 12 months ago

Patch set 12 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74473

Actions #9

Updated by Gerrit Code Review 12 months ago

Patch set 13 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74473

Actions

Also available in: Atom PDF