Issue Bug Closed

#21982buttons.formattext.restrictTo not evaluated correctly

Jörg Wagner 01/18/10, 13:06 updated 10/02/18, 12:25

Description

The config parameter
page.RTE.default.buttons.formattext.restrictTo
is ignored. At least it is ignored as long as you don’t also set the param “restrictToItems”, as the code wrongly checks the presence of “restrictToItems” before evaluating “restrictTo”. This is probably a copy&paste error.

The problem and the solution are nobrainers. Reading the code should be enough to understand what goes wrong.

Solution:
In file
/typo3/sysext/rtehtmlarea/extensions/InlineElements/class.tx_rtehtmlarea_inlineelements.php
around line 164 (version rtehtmlarea 1.7.12) the following change needs to be made:
OLD
// Restriction clause
if ($this->thisConfig[‘buttons.’][‘formattext.’][‘restrictToItems’]) {
NEW
// Restriction clause
if ($this->thisConfig[‘buttons.’][‘formattext.’][‘restrictTo’]) {

(issue imported from #M13282)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.