[TYPO3-core] RFC #16413: Bugfix: Not possible to configure RTE for flexform fields

Lars Houmark lars at houmark.com
Tue Nov 16 10:13:49 CET 2010


Hi list,

This is a SVN patch request.

Type: Bugfix

BT Reference: http://bugs.typo3.org/view.php?id=16413

Branches: trunk, TYPO3_4-4, TYPO3_4-3

Problem:

When loading a RTE inside a flexform, it can be convenient to configure 
the RTE for the needed buttons etc.

At the moment configuration added to <defaultExtras> is not interpreted 
(more like overwritten), thus making it impossible to hide buttons not 
wanted.

Solution:

Improve the code to check if RTE configuration parameters has been set 
before using Page TS config.

The attached patch will do that.

The patch is made for the 4-4 branch, but will also apply to both trunk 
and 4-3 with a small offset.

How to test:

Locate an extension that uses a RTE field in a flexform (first to mind 
could be ext: imagecycle). Manually edit the <defaultExtras> field for 
the RTE field in the flexform code in the file flexform_ds.xml.

Set the value to something like:
<defaultExtras>richtext[bold|italic|underline]</defaultExtras>

This should show only the bold, italic and underline buttons. But it 
shows the entire RTE.

Apply the patch.

Clear all caches and load the RTE again ;)

P.S. Sorry if I overlooked an existing RFC/BT on this one, but nothing 
came up after searching around. Only other people having similar symptoms.

Thanks for testing,

Lars


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 16413.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101116/9712f2bf/attachment.asc>


More information about the TYPO3-team-core mailing list