Bug #21982
closedbuttons.formattext.restrictTo not evaluated correctly
0%
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)
Files