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
Updated by Stanislas Rolland almost 15 years ago
Thanks for the correction.
Attached patch committed to SVN TYPO3core branch TYPO3_4-3 (revision 6917).
Updated by Stanislas Rolland almost 15 years ago
The trunk version of this patch was bundled into #13580 and was therefore committed with trunk revision 6940.