[TYPO3-rte] Automatically append class to header tag
Chris Müller
mueller at cyperfection.de
Tue Apr 24 14:22:13 CEST 2012
Hi Stanislas,
thanks for the hint. It seems that I overlooked it in the manual. It
works :-)
Regards,
Chris.
Am 23.04.2012 20:58, schrieb Stanislas Rolland:
> Hi Chris,
>>
>> I want to apply a css class to a header tag. For Example, if the user
>> selects an "Heading 2" block style not only a <h2> should be used, but a
>> <h2 class="h2">. The editor should not select a class manually. This
>> should be happen automatically. Is this possible?
>>
>
> RTE.default.buttons.formatblock.items.[item-name].addClass = className
>
> In this case,
> RTE.default.buttons.formatblock.items.h2.addClass = className
>
> Perhaps the manual is not clear?
>
> Regards,
> Stanislas
>
>
>
More information about the TYPO3-project-rte
mailing list