Project

General

Profile

Actions

Bug #21982

closed

buttons.formattext.restrictTo not evaluated correctly

Added by Jörg Wagner almost 15 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-01-18
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

Actions

Also available in: Atom PDF