Bug #24075

Not possible to configure RTE for flexform fields

Added by Lars Houmark over 2 years ago. Updated 7 days ago.

Status:New Start date:2010-11-16
Priority:Should have Due date:
Assignee:Alexander Opitz % Done:

0%

Category:rtehtmlarea
Target version:-
TYPO3 Version:4.4 Complexity:
PHP Version:
Votes: 9 (View)

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)

16413.diff (1 kB) Administrator Admin, 2010-11-16 09:58

16413-v.2.diff - Patch 16413-v.2 for the Bug #24075 (950 Bytes) Fedir RYKHTIK, 2011-12-22 15:21


Related issues

duplicated by Core - Bug #21815: Form extras don't work with Richtext Closed 2009-12-07

History

Updated by Lars Houmark over 2 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 over 2 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.

See: http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.3.0/view/4/3/#id2531282

Updated by Marco Malagoli over 2 years ago

IMHO this patch is very useful and I hope it will be integrated in futur version.
Cheers.

Updated by Fedir RYKHTIK over 1 year 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 over 1 year ago

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 6 months 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 7 days ago

  • Status changed from Needs Feedback to New
  • Target version deleted (0)

Updated by Alexander Opitz 7 days ago

  • Category set to rtehtmlarea

Updated by Alexander Opitz 7 days ago

  • Assignee set to Alexander Opitz

Also available in: Atom PDF