Not possible to configure RTE for flexform fields
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, thus making it impossible to hide buttons not wanted.
The attached patch fixes the problem and does it without interrupting Page TS configurations and User TS configurations.
(issue imported from #M16413)
#2 Updated by Stanislas Rolland about 7 years ago
The question is: are the buttons specified in defaultExtras shown in the RTE even if they are not present in the default configuration?
defaultExtras cannot be used to hide buttons included in the default configuration. It can only be used to add buttons "on top of" those specified in the default configuration.
#4 Updated by Fedir RYKHTIK about 6 years ago
2 Stanislas Rolland :
+1 We definitively need such feature. For example, we could hide some extrabuttons in the flexform with following construction :
The patch could be applied on 4.5 and 4.6 branches, the issue is still present.
The actual version of the document You referenced is situated here : http://typo3.org/documentation/document-library/core-documentation/doc_core_tca/4.6.0/view/1/4/
" Default Special Configuration (defaultExtras)
Since "types"-configuration does not apply for FlexForms and since a feature available as special configuration is sometimes needed regardless of type value you can also configure the default value of the special configuration. This is done with a key in the ['columns'][field name] array. Thus, the alternative configuration for the example above could be: "
If You have any questions, please ask.
#20 Updated by Benni Mack almost 2 years ago
- Category changed from 1600 to RTE (rtehtmlarea + ckeditor)
- Status changed from Accepted to Closed
We fixed this in v7, works just fine in the styleguide extension.
If I set
RTE.default.showButtons = image
then only the image button shows up.
My defaultExtras section then contains this:
and everything works. Finally we fixed it.