Reputation: 96
how can i add new classes to TYPO3 RTE (version 6.0.2) i tried the same way as with Typo3 4 : - created a css file in fileadmin folder (fileadmin/css/rte.css) - add style in this css file - add those lines in page TSConfig :
RTE.default {
classesParagraph >
classesTable >
classesTD >
classesLinks >
classesCharacter >
classesAnchor >
classesImage >
ignoreMainStyleOverride=1
showTagFreeClasses=1
contentCSS = /fileadmin/css/rte.css
showButtons = *
showTagFreeClasses = 1
proc.allowedClasses >
}
RTE.classes {
left.name=Float left
}
but nothing change, my added classes won't show in RTE...
thanks in advance.
Upvotes: 3
Views: 6056
Reputation: 1880
css file rte.css
a.youtube-vintage, a.fb-vintage, a.www-vintage {
color: #9A3811;
}
pagets config
/////////////////////////////////////////////////////////////
// RTE
/////////////////////////////////////////////////////////////
RTE.classes{
youtube-vintage{
name = youtube
value = color:#636466; font-size:15px;
}
fb-vintage{
name = fb
value = color:#9A3811;
}
www-vintage{
name = www
value = color:#9A3811;
}
}
RTE.default{
ignoreMainStyleOverride = 1
useCSS = 1
showTagFreeClasses = 1
contentCSS = fileadmin/templates/css/rte.css
buttons {
blockstyle.tags.div.allowedClasses := addToList(youtube-vintage, fb-vintage, www-vintage)
blockstyle.tags.p.allowedClasses := addToList(youtube-vintage, fb-vintage, www-vintage)
textstyle.tags.span.allowedClasses := addToList(youtube-vintage, fb-vintage, www-vintage)
}
proc.allowedClasses := addToList(youtube-vintage, fb-vintage, www-vintage)
}
Upvotes: 0
Reputation: 285
In case you still need help: Here is another question with a helpful answer: Cannot choose text style in RTE
I had the same problem with TYPO3 6.0.2 and many tutorials or forum entries I found contained deprecated properties. With the answer to the aforemetnioned question it worked.
Upvotes: 2
Reputation: 41
I think some configuration options have changed in newer versions of TYPO3.
Deprecated property => Use instead
See here: http://forge.typo3.org/issues/28325
Upvotes: 4