[TYPO3-rte] RTE CSS Customization

Radu Mogos supergogs2001 at yahoo.com
Tue Nov 27 14:47:52 CET 2012


Si jamais, for posterity's sake, this is what I ended up using in the final version (in the page TSConfig of course):

RTE.default {
 contentCSS = fileadmin/templates/rte/hotels.css
# classesTable = horizontal-minimalist-a, contenttable
# classesTD = td_style_1
# proc.allowedClasses := addToList(horizontal-minimalist-a,  contenttable, td_style_1, th_style_1)
 # showTagFreeClasses = 1
}

RTE.default.buttons.blockstyle.tags {
    table.allowedClasses = horizontal-minimalist-a, contenttable
    td.allowedClasses = td_style_1,td_style_2
    th.allowedClasses = th_style_1,th_style_2
}
RTE.classes.horizontal-minimalist-a.name = Table horizontale
RTE.classes.contenttable.name = Table par defaut
RTE.classes.td_style_1.name = Cellule type 1
RTE.classes.td_style_2.name = Cellule type 2
RTE.classes.th_style_1.name = Entête type 1
RTE.classes.th_style_2.name = Entête type 2




________________________________
 From: Stanislas Rolland <typo3 at sjbr.ca>
To: typo3-project-rte at lists.typo3.org 
Sent: Tuesday, November 27, 2012 1:53 PM
Subject: Re: [TYPO3-rte] RTE CSS Customization
 
Hi Radu,
>
> I'm having some issues with customising the classes shown in the RTE in the BE.
> I've linked to a CSS file where I have defined all the classes/styles, they show up in the list of
> available classes but the selection does not work for <table> and <td> tags.
> It works for <th> though and for the others, <p>, <ul>, <div> etc
>
> If I manually write the table or td class in the source code of the content and then save it, the class is saved
> and shown in the FE. So it's only the BE selector/dropdown which does not set my class.
>
> Here's my PAGE TSConfig code:
> ------
>
> RTE.default {
>   contentCSS = fileadmin/templates/rte/hotels.css
>   classesTable = horizontal-minimalist-a, contenttable
>   classesTD = td_style_1
>   proc.allowedClasses := addToList(horizontal-minimalist-a, contenttable, td_style_1)
> }
>

classesTable and classesTD are deprecated.

Try

RTE.default.buttons.blockstyle.tags {
    table.allowedClasses = horizontal-minimalist-a, contenttable
    td.allowedClasses = td_style_1

}

Regards,
Stanislas
_______________________________________________
TYPO3-project-rte mailing list
TYPO3-project-rte at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-rte


More information about the TYPO3-project-rte mailing list