[TYPO3-german] RTE anpassen

Jörg Leshel j.leshel at gmail.com
Fri Jul 14 15:41:00 CEST 2006


> Message: 9
> Date: Fri, 14 Jul 2006 13:58:47 +0200
> From: "Christian Wolfram" <christian.wolfram at pc-college.de>
> Subject: [TYPO3-german]  RTE anpassen
> To: typo3-german at lists.netfielders.de
> Message-ID:
>        <mailman.1.1152878519.25613.typo3-german at lists.netfielders.de>
>
> Hallo Gemeinde,
>
> ich wollte gern den RTE anpassen, indem ich 2 neue Klassen in TypoScript
> geschrieben habe.
>
> RTE.classes {
>  fettschrift {
>          name = Ganz fette Schrift
>                 value = font:bold
>         }
>         fettundrot {
>          name = Ganz fette, rote Schrift
>                 value = font:bold; color:red
>         }
> }
> RTE.default.classesCharacter = fettschrift, fettundrot
>
> So stand es im Typo3 Buch drin. Problem ist nun das es nicht funktioniert.
> Im RTE werden mir die zwei Klassen auch richtig angezeigt, jedoch wird nach
> dem Abspeichern die Formatierung wieder von Text entfernt.
> Auch die Tipps in die in den Foren stehen funktieren leider nicht. Kann
> einer von euch helfen??
>
> mfg
> Christian
>
>
>
>
> ------------------------------
>
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-german
>
> End of TYPO3-german Digest, Vol 34, Issue 66
> ********************************************
>
Hallo Christian,

ich weiss nicht ob dir so eine Lösung weiterhilft aber ich definier
meine klassen immer so(HTMLAREA) :

#TSconfig
RTE >
RTE.default {
#stylesheet mit den im RTE auswählbaren Klassen
  contentCSS = fileadmin/styles/contentStyle.css

  showButtons = *
  showStatusBar = 1
  toolbarOrder = bold, italic,underline,bar,left,center,right,
justifyfull,bar,orderedlist,unorderedlist,outdent,indent,bar,insertcharacter,subscript,superscript,strikethrough,link,image,linebreak,findreplace,spellcheck,bar,chMode,inserttag,removeformat,bar,copy,cut,paste,bar,undo,redo,bar,showhelp,about,bar,linebreak,blockstylelabel,blockstyle,fontsize,formatblock,bar,textcolor,bgcolor,linebreak,table,tableproperties,toggleborders,rowproperties,rowinsertabove,rowinsertunder,rowdelete,rowsplit,bar,columninsertbefore,columninsertafter,columndelete,columnsplit,cellproperties,cellinsertbefore,cellinsertafter,celldelete,cellsplit,cellmerge
  removeTags =  div
  disableContextMenu = 0
  hideFontSizes = 0
  allowTags = font,table,tbody,tr,th,td,h1,h2,p,br,span,ul,ol,li,re,blockquote,strong,em,a,

proc.entryHTMLparser_db = 1
    proc.entryHTMLparser_db {
        keepNonMatchedTags = 0
        allowTags =
font,table,tr,td,p,div,b,i,img,hr,a,br,strong,em,li,ul,ol,span,h1,h2,h3,h4,h5,h6,dl,dt,dd,list,link
        removeTags = center,nobr,div
        htmlSpecialChars = 2
        xhtml_cleaning = 1
    }


}

#im stylesheet selber kannst du dann dein klassen defineren die
enteder default sind oder über ein dropdown (blockstyle) anwählbar
sind
#bsp.:

h1 {
 font-family:Arial, Helvetica, sans-serif;
font-size:12px;
font-weight:bold;
 color: #000000;
}

h2{
 font-family:Arial, Helvetica, sans-serif;
 font-size:12px;
 font-weight:bold;
  color: #62B021;
}
#ist nur anwählbar wenn man im table tag ist
table.history {
 border:1px solid #C1C1C1;
 background-color:#F5F5F5;
}
gilt für alle td's
td { font-family:Arial, Helvetica, sans-serif; font-size:10pt;
color:#000000;  vertical-align:top; }

....



More information about the TYPO3-german mailing list