[TYPO3-rte] Automatically append class to header tag
Stanislas Rolland
typo3 at sjbr.ca
Mon Apr 23 20:58:52 CEST 2012
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