[Typo3] rtehtmlarea and settings in $TCA

Michael Rolli rolli at iml.unibe.ch
Fri Nov 18 14:37:00 CET 2005


>> $TCA['tt_address']['types'] = array(
>>          '1' => Array('showitem' => 'name;;2;;1-1-1, ...
>> description;;;richtext[paste|bold|italic|underline|orderedlist|
>> unorderedlist|outdent|indent|link]:rte_transform[flag=rte_enabled|
>> mode=ts];4-4-4, hidden
>> ...
>>
>> Now question: Is this richtext[]-Thing known to work with
>> rtehtmlarea? Because I see all buttons for this field even if limit
>> it to those above.
> I think these settings are for the default RTE (IE only). If you want
> to hide some features of the htmlArea, it is explained well at this
> page : http://typo3.org/documentation/document-library/rtehtmlarea/ 
> Configuration-80/
>
> Look under "Step 4: Page TSConfig" for template configuration.

I did further investigate this problem by debugging  
class.tx_rtehtmlarea_base.php.

What turns out to be the problem is the userTS (or defaultUserTS)  
taking precedence over the settings above because in the above  
example I want to enable the lists but those are not in the  
RTEkeyList of defaultUserTS. UserTS wins and cuts them out.

What's the best way to enable orderedlist and unorderedlist for only  
exact one text field of an extension and thus overriding defaultUserTS?

Any hints are very appreciated.
Michael



More information about the TYPO3-english mailing list