[TYPO3-rte] adding own classes to bullet list
Stanislas Rolland
typo3 at sjbr.ca
Wed Jun 29 06:02:58 CEST 2011
Hi Siddhesh,
> I want to add a class to bullet list.When i select bullet list.I get a
> html some what like this
> <ul>
> <li></li>
> <li></li>
> <ul>
>
> But i want something like this to happen when i select bullet list
> <ul class="myownclass">
> <li></li>
> <li></li>
> </ul>
>
There is currently no option to add a class when the bullet list is
inserted in the RTE. After its insertion, you can add a class on the ul
element using the blockstyle selector or the editelement dialogue.
Or you could configure the RTE transformation so that a default class is
added on all ul elements on the way to the database. In Page TSConfig,
something like:
RTE.default.proc.entryHTMLparser_db.tags.ul.fixAttrib.class {
default = myownclass
always = 1
}
Or you could configure FE rendering so that a default class is added on
any ul element found in RTE content. In TS template setup, something like:
lib.parseFunc_RTE.nonTypoTagStdWrap.HTMLparser.tags.ul.fixAttrib.class {
default = myownclass
always = 1
}
Kind regards,
Stanislas
More information about the TYPO3-project-rte
mailing list