[Typo3] RTE customization

Dmitry Dulepov typo3 at fm-world.ru
Thu Jul 7 15:29:59 CEST 2005


hi!

This is a copy of my code. It works for default RTE + typo3 3.7.0:

------------------------------
RTE.classes {
  bodytext {
   name = Parasts teksts
   value = text-align: justify;
  }
  autors {
   name = Autors
   value = font-style: italic;
  }
}
RTE.default {
	classesParagraph = bodytext, autors
	hidePStyleItems = H6, P, PRE
	disableEnterParagraphs = 1
	enableWordClean = 1
	proc.internalizeFontTags = 0

	mainStyleOverride (
		P { text-align: justify; }
	)
  hideFontSizes = *
  hideFontFaces = *
  disableColorPicker = 1
  hideButtons = fontsize,textcolor,bgcolor,emoticons,fontstyle,class
}
RTE.config.tt_content.bodytext.proc {
  allowedClasses=H1, H2, H3, P, bodytext, autors
  denyTags=font, size, style
}
------------------------------

Notice the "RTE.config.tt_content.bodytext.proc". It does the trick.

Dmitry.

mamax wrote:
> Hi,
> 
> it really makes me mad. The most simple things (at least they seem to be
> simple) won't work.
> 
> I customized my RTE on one page like the manuals say:
> 
> 1. Put TSConfig-code into page header:
> 
> RTE.classes {
>  title15 {
>   name = Title15
>   value = font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
> font-size: 15px; font-weight : bold; color : #990000;
>  }
> }
> RTE.default.classesParagraph = title15
> 
> 2. Ensure that your CSS contains this class "title15" ... done.
> 
> At first it seems to work as the class is displayed in the menu and the
> paragraph gets formatted correctly (the html source contains the proper
> div-tags).
> But as soon I save the page, the formatting restores to regular bodytext.
> The div-tags vanished...
> 
> ...i'm dazed and puzzled
> 
> 
> --
> Markus Massak
> dataport IT.Netzwerk
> 
> www.dataport.at
> 
> 
> 



More information about the TYPO3-english mailing list