Project

General

Profile

Actions

Bug #81381

closed

RTE TSConfig is lost when using own CKEditor preset

Added by Leon Dietsch over 7 years ago. Updated about 6 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 #1

Updated by Gerrit Code Review over 7 years ago

  • Status changed from New to Under Review

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53481

Actions #2

Updated by Frans Saris over 7 years ago

  • Has duplicate Bug #80971: How to define custom class, title, and target in Link Browser for content elements and the new rte_ckeditor? added
Actions #3

Updated by Hannes Lau over 7 years ago

  • Related to Task #81882: ckeditor configuration: Allow to override presets with PageTSConfig added
Actions #4

Updated by Riccardo De Contardi over 7 years ago

  • Related to Bug #81880: ckeditor: Editor configuration cannot be overridden via PageTS added
Actions #5

Updated by Gerrit Code Review about 7 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53481

Actions #6

Updated by Gerrit Code Review about 7 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53481

Actions #7

Updated by Gerrit Code Review about 7 years ago

Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54243

Actions #8

Updated by Frans Saris about 7 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #9

Updated by Frans Saris about 7 years ago

  • Has duplicate Bug #82865: Custom link attributes not working on rte_ckeditor added
Actions #10

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF