[TYPO3-german] RTEHtmlArea Underline tut net

Udo Gerhards Udo.Gerhards at genion.de
Thu Mar 16 21:00:24 CET 2006


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



christian reiter schrieb:
> Hallo,
>
> Ich hatte auch das Problem, mir hat es geholfen folgendes in die TSConfig
> der Website-Root zu setzen
> RTE.default.removeTags = center, font, sdfield, strike
> RTE.default.proc.entryHTMLparser_db.removeTags = center, font, sdfield,
> strike
>
> Danach wurde die unterstreichung nicht mehrbeim Speichern entfernt
>
> Dort steht per default eben auch dass der u-tag entfernt werden soll, d.h
> Standard ist RTE.default.removeTags = center, font, sdfield, strike,u - das
> steht in der RTEhtmlarea dok auf S.15
>
> Hilfreich ist hierbei auch das Modul "WEb>Info," dann "Seiten TsConfig" und
> "RTE." Zweig wählen. Da sieht man dann was es alles gibt.
>
> Grüsse,
> Christian Reiter
>
>
> "Claudia Peter" <peter.claudia at googlemail.com> schrieb im Newsbeitrag
> news:mailman.2291.1140447073.3122.typo3-german at lists.netfielders.de...
> Hi Liste,
>
> habe jetzt schon alles mögliche probiert und komme nicht auf meinen
> Fehler. Ich kann keine Texte unterstrichen darstellen. bold und italic
> funktionieren einwandfrei.
>
> Hatte das Problem in htmlarea v.1.1.3 und auch jetzt in 1.1.6
>
> Woran könnte das liegen?
>
> LG Claudia
>
>
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-german




More information about the TYPO3-german mailing list