Project

General

Profile

Actions

Bug #81381

closed

RTE TSConfig is lost when using own CKEditor preset

Added by Leon Dietsch almost 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2017-05-30
Due date:
% Done:

100%

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

Description

When setting your own CKEditor preset RTE TSConfig configuration is lost. This result in not being able to configure CSS classes for LinkHandlers via TSConfig. I debugged this down to
\TYPO3\CMS\RteCKEditor\Controller\BrowseLinksController which depends on TSConfig-arrays retrieved by \TYPO3\CMS\Core\Configuration\Richtext.

Responsible for this behavior (losing the TSConfig configuration) is \TYPO3\CMS\Core\Configuration\Richtext->getConfiguration(). The whole configuration array is overwritten by the parsed custom preset YAML file.

A workaround is to emulate a TSConfig-like array in your YAML preset to add configuration which would usually be found in TSConfig (RTE.*, RTE.default):

imports:
   ...

editor:
   ...

"buttons.":
  "link.":
    "page.":
      "properties.":
        "class.":
          default: 'somecssclass'
    "properties.":
      "class.":
        allowedClasses: 'somecssclass'

"classesAnchor.":
  "linkIconPage.":
    "class": "somecssclass" 
    "type": "page" 

"classes.":
  "somecssclass.":
    "name": "Some CSS class label" 

Related issues 4 (0 open4 closed)

Related to TYPO3 Core - Task #81882: ckeditor configuration: Allow to override presets with PageTSConfigClosedHannes Lau2017-07-14

Actions
Related to TYPO3 Core - Bug #81880: ckeditor: Editor configuration cannot be overridden via PageTSClosedHannes Lau2017-07-15

Actions
Has duplicate TYPO3 Core - Bug #80971: How to define custom class, title, and target in Link Browser for content elements and the new rte_ckeditor?Closed2017-04-24

Actions
Has duplicate TYPO3 Core - Bug #82865: Custom link attributes not working on rte_ckeditorClosed2017-10-26

Actions
Actions

Also available in: Atom PDF