[TYPO3-core] FYI: Added feature #12943: htmlArea RTE: Configuring custom items in the block formatting drop-down list

Stanislas Rolland typo3 at sjbr.ca
Sun Dec 6 00:20:31 CET 2009


FYI: The attached SVN patch was committed.

Type:
Feature

Problem:
There is a need for custom items in the block formatting drop-down list.

Solution:
Three PageTSConfig options are added in order to configure the block 
formatting drop-down list.

Adding a class on formatted blocks:
buttons.formatblock.items.[item-name].addClass
     string
     A class name to be assigned to the blocks whenever the item is 
applied to selected text.

Adding custom items to the block formatting drop-down list:
buttons.formatblock.addItems
     list of id-strings
     List of options to be added to the block formating drop-down list.
     Each of the added items should be configured.

Configuring a custom item to be added to the block formatting drop-down 
list:
buttons.formatblock.items.[item-name].tagName
     string
     A tag name to be assigned to the block elements whenever the 
(custom) item is applied to selected text.
     The value of this property must be equal to one of the standard 
block element types.
     [item-name] must not be a standard block tag name.

Other properties applicable to standard items also apply to custom items 
(addClass, label, hotKey, etc.).

Extended options:
buttons.formatblock.orderItems
     The list may also contain custom items as specified by the 
buttons.formatblock.addItems property.

The manual is also updated.

Notes:
Thanks to Michael Bakonyi and civit (www.civit.de) for sponsoring this 
feature.

Bugtracker references:
http://bugs.typo3.org/view.php?id=12943

Branches:
trunk (revision 6633)

Regards,
Stanislas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rtehtmlarea_feature_12943.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20091205/e14171b2/attachment.asc>


More information about the TYPO3-team-core mailing list