Project

General

Profile

Actions

Task #81882

closed

ckeditor configuration: Allow to override presets with PageTSConfig

Added by Hannes Lau almost 7 years ago. Updated over 5 years ago.

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

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

For the RTE editor configuration, allow to override presets chosen via TSconfig

In my use case, I would like to
  • Use field specific RTE configurations for custom content elements
  • For all RTEs: Allow admin users to switch to HTML mode

A simplified example:

# Select minimal preset for tt_content.bodytext for CType text
RTE.config.tt_content.bodytext.types.text.preset = minimal

# Override a setting on top of the preset
RTE.editor.config.width = 200

Right now, the editor will show at full width, as defined in the preset.

In typo3/sysext/core/Classes/Configuration/Richtext.php:106 there is a comment

// Reload the base configuration, if overridden via PageTS "RTE.default.preset = Minimal" for instance
// However, if a preset is chosen via TSconfig, then it is not possible to override anything else again


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #81381: RTE TSConfig is lost when using own CKEditor presetClosed2017-05-30

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

Actions
Actions

Also available in: Atom PDF