[TYPO3-german] RTEHtmlArea Underline tut net

Wiebke Peters w.peters at verw.hs-wismar.de
Tue Apr 4 15:10:59 CEST 2006


Udo Gerhards schrieb:
> Hallo Claudia,
>
> hier mal die TSCONFIG aus meinem RTE (aktuelle Version). Funktioniert 
> einwandfrei:
>
> RTE.default {
>         ## Default RTE configuration
>     skin = EXT:rtehtmlarea/htmlarea/skins/default/htmlarea.css
>     contentCSS = fileadmin/templates/...
>     enableWordClean = 1
>     removeComments = 1
>     removeTags = sdfield, font
>     removeTagsAndContents = style,script
>     useCSS = 1
>     defaultLinkTarget = _self
>     showStatusBar = 1
>     showButtons = *
>     hideButtons = moticon, about, spellcheck
>     hideTableOperationsInToolbar = 0
>     disableContextMenu = 0
>     disableSelectColor = 0
>     disableTYPO3Browsers = 0
>     disableEnterParagraphs = 0
>     removeTrailingBR = 1
>     hidePStyleItems =
>     hideFontSizes =
>     #hideTags = font, font (full)
>         hideTags =
>     disableColorPicker = 0
>     classesCharacter = <klassen aus dem rte-stylsheet>
>     classesImage =
>     classesAnchor =
>     showTagFreeClasses = 1
>     fontFace = face1,face2,face3
>
>         ## Default proc rules
>     proc {
>
>             ## TRANSFORMATION METHOD
>         overruleMode = ts_css
>
>             ## LINES CONVERSION
>         dontConvBRtoParagraph = 1
>
>             ## BRING FONT TAGS INSIDE PARAGRAPHS
>         internalizeFontTags = 1
>
>             ## TAGS ALLOWED OUTSIDE P & DIV
>         allowTagsOutside = img,hr,address,span,table,div,br
>
>             ## TAGS ALLOWED
>         allowTags = span, table, tbody, tr, th, td, h1, h2, h3, h4, h5, 
> h6, div, p, br, ul, ol, li, pre, blockquote, strong, em, b, i, u, sub, 
> sup, strike, a, link, img, nobr, hr, center, font, tt, q, cite, abbr, 
> acronym, address
>                 #preserveTags = span, &amp; &quote;
>        
>             ## TAGS DENIED
>         denyTags >
>
>             ## ALLOWED P & DIV ATTRIBUTES
>         keepPDIVattribs = class, style, align, width
>
>             ## ALLOWED CLASSES
>         allowedClasses = <klassen aus dem rte-stylsheet>
>
>                 HTMLparser_rte {
>                                       allowTags < RTE.default.proc.allowTags
>                                       #removeTags = font
>                                       removeTags =
>                                       }
>
>             ## CONTENT TO DATABASE
>         entryHTMLparser_db = 1
>         entryHTMLparser_db {
>
>                 ## TAGS ALLOWED
>             allowTags < RTE.default.proc.allowTags
>
>                 ## XHTML COMPLIANCE
>             xhtml_cleaning = 1
>
>                 ## AVOID TO HSC TWICE
>             htmlSpecialChars = 0
>
>                 ## CLEAN TAGS
>             tags.hr.allowedAttribs = class, noshade, width, size, style
>                         tags.span.fixAttrib >
>                         tags.span.allowedAttribs = class, style
>             noAttrib = b, i, u, strike, sub, sup, strong, em, quote, 
> blockquote, cite, tt, br, center
>
>                 ## REMAP B AND I TAGS
>             tags.b.remap = strong
>             tags.i.remap = em
>
>                 ## REMOVE OPEN OFFICE META TAGS
>             removeTags = sdfield
>
>                 ## PROTECT CUSTOM TAGS
>             keepNonMatchedTags = protect
>         }
>     }
> }
>
> Mein RTE läuft grundsätzlich auf CSS. D.h. auch Tags wie <b> oder <u> 
> werden durch <span style="..."> ersetzt. Hier hatte ich das Problem, daß 
> mir die Standarteinstellung unter
>
> ...entryHTMLparser_db. tags.span.fixAttrib = ...
>
> immer die ganzen SPAN-Tags aus meinem Text beim Speichern entfernt hat. 
> Ich konnte keinen Text richtig gestalten, bis ich das durch
>
> ...entryHTMLparser_db. tags.span.fixAttrib >
>
> entfernt habe. Danach gings. Der o.g. Code läuft mit der aktuellen 
> RTE-Version in meiner Seite.
>
> Gruß
>
> Udo
>
>
>
>   
Hallo,
ich habe seit Neustem auch das Probem, dass Unterstreichungen nicht 
gespeichert werden. Ich habe nun schon verschiedene Konfigurationen 
ausprobiert und diverse Tipps durchgespielt, aber nichts hilft.

Aktuelle RTE-Kofiguration:
###########

##Einstellungen RTE
RTE.default {

#classesParagraph = roteSchrift
classesCharacter = wichtigerText, sehrGross, highlight

## zeigt alle CSS-Klassen die in rte.css vorhanden sind
showTagFreeClasses = 1
#Verstecke folgende Buttons
hideButtons=   blockstylelabel, blockstyle, fontstyle, fontsize,  
strikethrough, subscript, superscript, lefttoright, righttoleft, 
textcolor, bgcolor, textindicator, emoticon,
#Verstecke selten verwendete Paragraph-Styles
hidePStyleItems = pre,address, h5, h6

showButtons (
class, textstylelabel, textstyle,  formatblock, bold, italic,
orderedlist, unorderedlist, outdent, indent, textindicator,
insertcharacter, link, table, findreplace, chMode, removeformat, undo, 
redo, about,
toggleborders, tableproperties,
rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit,
columninsertbefore, columninsertafter, columndelete, columnsplit,
cellproperties, cellinsertbefore, cellinsertafter, celldelete, 
cellsplit, cellmerge
)

# Tabellen Editierungs-Optionen (cellspacing/ cellpadding / border)
    disableSpacingFieldsetInTableOperations = 1
    disableAlignmentFieldsetInTableOperations=1
    disableColorFieldsetInTableOperations=1
    disableLayoutFieldsetInTableOperations=1
    disableBordersFieldsetInTableOperations=0

# Hält die RTE Icons gegroupt zusammen
    keepButtonGroupTogether = 1
    keepToggleBordersInToolbar = 1

#entferne Tags
removeTags = center, font, sdfield, strike

classesAnchor.default {
        page = internal-link
        url = external-link
        file = download
        mail = mail
    }
}

#RTE.config.tt_content.bodytext.proc.allowedClasses = wichtigerText, 
sehrGross

RTE.default.proc.allowedClasses < RTE.default.classesCharacter
RTE.config.tt_content.bodytext < RTE.default
RTE.default.disableEnterParagraphs = 0

##Default RTE processing rules
RTE.default.proc {

## TRANSFORMATION METHOD
overruleMode = ts_css

##LINES CONVERSION
## DO NOT CONVERT BR TAGS INTO LINEBREAKS
dontConvBRtoParagraph = 1


##TAGS ALLOWED OUTSIDE P & DIV
allowTagsOutside = img,hr,address

##TAGS ALLOWED
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

##TAGS DENIED
denyTags = font

# ALLOWED P & DIV ATTRIBUTES
keepPDIVattribs = align,class,style



#CONTENT TO DATABASE
entryHTMLparser_db = 1
entryHTMLparser_db {
tags.span.fixAttrib >
# XHTML COMPLIANCE
xhtml_cleaning = 1

# CLEAN TAGS
noAttrib = b, i, u, strike, sub, sup, strong, em, quote, blockquote, 
cite, tt, br, center
tags.hr.allowedAttribs = class, noshade, width, size, style

# REMAP B AND I TAGS
tags.b.remap = strong
tags.i.remap = em

# bilder werden nicht entfernt
tags.img.allowedAttribs = style,class,id,src,alt,title
tags.img.rmTagIfNoAttrib = 1

## REMOVE TAGS
            removeTags = sdfield, font, center, strike
rmTagIfNoAttrib = span,div,font

htmlSpecialChars = 1
keepNonMatchedTags = 1
}

} 

# *** Entfernt das Bild vor den Links
RTE.classesAnchor {
    internalLink {
        class = internal-link
        type = page
        image >
    }
    externalLink {
        class = external-link
        type = url
        image >
    }
    externalLinkInNewWindow {
        class = external-link-new-window
        type = url
        image >
    }
    internalLinkInNewWindow {
        class = internal-link-new-window
        type = page
        image >
    }
    download {
        class = download
        type = file
        image >
    }
    mail {
        class = mail
        type = mail
        image >
    }
}



#Front end RTE configuration
RTE.default.FE < RTE.default
RTE.default.FE.showStatusBar = 0
RTE.default.FE.hideButtons = chMode, blockstyle, textstyle, underline, 
strikethrough, subscript,superscript, lefttoright, righttoleft, left, 
center, right, justifyfull, table, inserttag, findreplace,removeformat, 
copy, cut, paste
RTE.default.FE.userElements >
RTE.default.FE.userLinks >

TCEFORM.tt_content.bodytext.RTEfullScreenWidth= 100%
###########

Im Einsatz:
T3 3.8 , htmlarea 1.2

Bitte um Hilfe.

-- 
Mit freundlichen Gruessen
    
--- Wiebke Peters ---





More information about the TYPO3-german mailing list