[TYPO3-english] custom class in RTE - Typo3 6.1.3
PIT Solutions
typo3 at pitsolutions.com
Tue Sep 10 06:47:10 CEST 2013
Hi Man,
Still the block style and text-style is disabled in my RTE. I've tried a lot. But no solution found.
In Typo3 4.7 its working, but in 6.1.3 this is not working.
Thanks & Regards,
Arun
________________________________
From: Web Essentials - Support (Math Man) <support at web-essentials.asia>
To: PIT Solutions <typo3 at pitsolutions.com>; TYPO3 English <typo3-english at lists.typo3.org>
Sent: Tuesday, September 10, 2013 7:56 AM
Subject: Re: [TYPO3-english] custom class in RTE - Typo3 6.1.3
Hi Arun,
You can look through this example:
RTE {
classes {
table-striped {
name = Table Striped
value =
}
}
default {
contentCSS = fileadmin/templates/css/rte.css
buttons {
blockstyle {
tags {
table.allowedClasses = table-striped
}
}
}
classesTable := addToList(table-striped)
}
}
Thanks,
Man
On 09/09/2013 06:55 PM, PIT Solutions wrote:
> Hi Viktor,
>
> Sorry, when I try to add these configuration, the block style and text-style is disabled in backed.
> When I select a text to add a class, the block style and text style is inactive.
>
> I've changed my configuration like this;
>
> RTE.classes {
> bluehead {
> name = Blue Head
> }
> }
>
> RTE.default {
> showButtons = *
> ignoreMainStyleOverride = 1
> showTagFreeClasses = 1
>
> useCSS = 1
> contentCSS = fileadmin/templates/css/rte.css
> classesParagraph := addToList(bluehead)
> buttons.blockstyle.tags.p.allowedClasses = bluehead
> buttons.blockstyle.tags.div.allowedClasses = bluehead
> }
>
> Is there any mistake? Please help me.
>
> Regards,
> Arun Chandran
>
>
> ________________________________
> From: Viktor Livakivskyi <invisible.kinder at gmail.com>
> To: typo3-english at lists.typo3.org
> Sent: Monday, September 9, 2013 4:08 PM
> Subject: [TYPO3-english] Re: custom class in RTE - Typo3 6.1.3
>
> Hi,
>
>> RTE.default.classesParagraph := addToList(lead)
> There is no more such an option in RTE. Instead you should use:
> RTE.default.buttons.blockstyle.tags.p.allowedClasses = lead
>
> You may use any tag, instead of 'p', so f.e. if you want same class be applicable for all div-tags, you should add as well:
> RTE.default.buttons.blockstyle.tags.div.allowedClasses = lead
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
-- Web Essentials
Redefining Web Development
Man Math
Support Team
E:support at web-essentials.asia
W:www.web-essentials.asia
More information about the TYPO3-english
mailing list