Bug #24075
closedNot possible to configure RTE for flexform fields
0%
Description
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)
Files
Updated by Lars Houmark about 14 years ago
The patch is made for the 4.4 branch but does apply for both 4.3 and trunk with a minor offset and thus it should be applied for all 3 branches.
Updated by Stanislas Rolland about 14 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.
Updated by Marco Malagoli almost 14 years ago
IMHO this patch is very useful and I hope it will be integrated in futur version.
Cheers.
Updated by Fedir RYKHTIK almost 13 years ago
2 Stanislas Rolland :
+1 We definitively need such feature. For example, we could hide some extrabuttons in the flexform with following construction :
<defaultExtras>richtext[bold|italic|subscript|superscript|removeformat|chMode]:rte_transform[flag=rte_enabled|mode=ts_css]</defaultExtras>
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.
Updated by Fedir RYKHTIK almost 13 years ago
- File 16413-v.2.diff 16413-v.2.diff added
That's an another version of the patch, there we could see more clearly, what we are using local configuration instead of default one. Patch made on 4.5.10.
Updated by Tizian Schmidlin about 12 years ago
Is there a chance that this patch gets into core anyday soon? I almost lost a day looking for what the issue mitgh be until I found this bug report (btw, thank you for the patch).
Updated by Alexander Opitz over 11 years ago
- Status changed from Needs Feedback to New
- Target version deleted (
0)
Updated by Alexander Opitz over 11 years ago
- Category set to RTE (rtehtmlarea + ckeditor)
Updated by Gerrit Code Review over 11 years ago
- Status changed from New to Under Review
Patch set 1 for branch TYPO3_6-1 has been pushed to the review server.
It is available at https://review.typo3.org/21474
Updated by Gerrit Code Review over 11 years ago
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/21477
Updated by Gerrit Code Review over 11 years ago
Patch set 2 for branch TYPO3_6-1 has been pushed to the review server.
It is available at https://review.typo3.org/21474
Updated by Gerrit Code Review over 11 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/21477
Updated by Gerrit Code Review over 11 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/21477
Updated by Christian Buelter about 11 years ago
Patch v2 works for me for TYPO3 CMS 4.5.32 (although I had to apply it manually).
Updated by Alexander Opitz almost 11 years ago
- Status changed from Under Review to Accepted
- Is Regression set to No
Updated by Stefan Neufeind over 10 years ago
What's the status of this? Where is it going? I see there was a patch for master but now abandoned?!?
Updated by Witali Rott over 10 years ago
- File FormEngine.php.patch FormEngine.php.patch added
The Patch reset the whole config.
Use this Patch to change only the Buttons.
Works under 6.0.13
Updated by Alexander Opitz over 9 years ago
- Category changed from RTE (rtehtmlarea + ckeditor) to 1600
Updated by Benni Mack almost 9 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:
<defaultExtras>richtext[*]:rte_transform</defaultExtras>
and everything works. Finally we fixed it.