[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TYPO3-english] RTE Configuration Problems



Hi Boris,

it would be helpfull to know which configuration you have set via ExtMgr. Demo, 
Advanced, Default? I guess, it is either default or demo, and if so, you need 
to remove the buttons that you do not want 
in BE by setting something like

RTE.default.showButtons := removeFromList(list of buttons)

As far as I can see you only define the button list for FE. To check what is 
really configured it is always helpfull to choose Web>Info>Page TSConfig>RTE.

Kind regards and a happy new year, Uschi

Boris Degenhardt wrote:
> Hey everybody,
> i configured my RTE for BE and FE in an external .ts file included on 
> the root pages ts config. i have a little forum where i used the rte in 
> the FE and the formatted text there is shown in the correct way. When i 
> use it in the BE some of the removed button are still shown and 
> formatting like B, I and U are not working. Anybody an idea? Here my 
> code, its RTE Configurations so its long..sorry. If you want to help i 
> can send it per email!
> 
> ### RTE Classe des Interface (Ausrichtung) ###
> RTE.classes {
>     align-left {
>          name = 
> LLL:EXT:rtehtmlarea/htmlarea/locallang_tooltips.xml:justifyleft
>     value = text-align: left;
>     }
>     align-center {
>     name = 
> LLL:EXT:rtehtmlarea/htmlarea/locallang_tooltips.xml:justifycenter
>     value = text-align: center;
>     }
>     align-right {
>       name = 
> LLL:EXT:rtehtmlarea/htmlarea/locallang_tooltips.xml:justifyright
>     value = text-align: right;
>     }
> }
> 
> ### RTE default ###
> RTE.default {
>     contentCSS = fileadmin/templates/css/rte.css
>     useCSS = 1   
>     userElements >
>     user
>     showTagFreeClasses = 1
>     showStatusBar = 0
>   showButtons (
>     blockquote, insertparagraphbefore, insertparagraphafter, formattext, 
> bidioverride, big, bold, citation, code, definition, deletedtext,
>         emphasis, insertedtext, italic, keyboard,  monospaced, 
> quotation, sample, small, span, strong, underline, textcolor, 
> insertcharacter, paste
>     )
> 
>     ### tags die erlaubt / verboten sind ###
>     allowTags = table, tbody, tr, th, td, h1, h2, h3, h4, h5, h6, div, 
> p, br, span, ul, ol, li, re, blockquote, strong, em, b, i, u, sub, sup, 
> strike, a, img, nobr, hr, tt, q, cite, abbr, acronym, center, link
>     denyTags = font
>     removeTags = removeFromList(u)
> 
>     ### Add styles Left, center and right alignment of text in 
> paragraphs and cells ###
>     inlineStyle.text-alignment (
>         p.align-left, h1.align-left, h2.align-left, h3.align-left, 
> h4.align-left, h5.align-left, h6.align-left, td.align-left { text-align: 
> left; }
>     p.align-center, h1.align-center, h2.align-center, h3.align-center, 
> h4.align-center, h5.align-center, h6.align-center, td.align-center { 
> text-align: center; }
>     p.align-right, h1.align-right, h2.align-right, h3.align-right, 
> h4.align-right, h5.align-right, h6.align-right, td.align-right { 
> text-align: right; }
>     )
> 
>   proc {
>     overruleMode = ts_css
>            
>         ### erlaubte attribute in p, div tags ###
>         keepPDIVattribs = align,class,style,id
>        
>         ### List all class selectors that are allowed on the way to the 
> database ###
>         allowedClasses (
>             align-left, align-center, align-right, author
>         )
> 
>         # Content to database
>         entryHTMLparser_db = 1
>         entryHTMLparser_db {
>             ### tags die erlaubt/verboten sind ###
>             allowTags < RTE.default.proc.allowTags
>             denyTags < RTE.default.proc.denyTags
> 
>             ### CLEAN TAGS ###
>             noAttrib = b, i, u, strike, sub, sup, strong, em, quote, 
> blockquote, cite, tt, br, center
>     
>             rmTagIfNoAttrib = span,div,font
>     
>             ### align attribute werden erlaubt ###
>             tags {
>                 p.fixAttrib.align.unset >
>                 p.allowedAttribs = class,style,align
> 
>                 div.fixAttrib.align.unset >
>            
>                 hr.allowedAttribs = class
> 
>                 ### b und i tags werden ersetzt (em / strong) ###
>                 b.remap = strong
>                 i.remap = em
> 
>                 ### img tags werden erlaubt ###
>                 img >
>             }
>                
>             ### entfernt u aus Liste der tags die vom HTML Parser auf 
> dem Weg zur DB entfernt werden ###
>             removeTags = removeFromList(u)
>         }
>     }
> 
>     ### Classes: Ausrichtung ###
>     classesParagraph (
>         align-left, align-center, align-right
>     )
> 
>   ### Use same processing as on entry to database to clean content 
> pasted into the editor ###
>   enableWordClean.HTMLparser < RTE.default.proc.entryHTMLparser_db
>           
>   ### FE RTE configuration (htmlArea RTE only) ###
>      FE < RTE.default
>      FE {
>             userElements >
>             userLinks >
>            
>             showButtons (
>                     blockquote, insertparagraphbefore, 
> insertparagraphafter, formattext, bidioverride, big, bold, citation, 
> code, definition, deletedtext,
>                     emphasis, insertedtext, italic, keyboard,  
> monospaced, quotation, sample, small, span, strong, underline, 
> textcolor, insertcharacter, paste
>             )
>            
>             proc {
>                 allowedClasses < RTE.default.allowedClasses
>             }
>            
>             skin = fileadmin/template/css/rte.css
>   }
> }
> 
> Thx alot for helping
> 
> Best Regards
> Boris
_______________________________________________
TYPO3-english mailing list
[email protected]
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english