Zum Inhalt springen

RTE - Alle Formatierungen automatisch entfernen

Erstellt am 4. Februar 2008 · 1 Antwort · letzte Antwort am 4. Februar 2008

Tags: Frage

spL ·

Hallo zusammen.,
Bei mir Funktioniert die RTE-Config nicht richtig. Ich habe es mit diversen Einstellungen versucht dennoch bleibt nach dem Pasten und speichern von formatierten Texten im RTE immernoch einiges übrig.

So z.B. solche Tags:
<span style="font-size: 11pt; font-family: Arial;">

Wenn ich im RTE allerdings händisch die Word-Formatierung entferne ist alles wie gewünscht. Diesen händischen Umweg möchte ich allerdings umgehen.

Weiß irgendwer woran das noch liegen könnte, ich komm einfach nicht weiter...

Meine TS-RTE Config ist im TS-Setup der Rootseite wie folgt: (Typo3 4.0 + rtehtmlarea 1.4.4)

RTE >

RTE.default {

        enableWordClean = 1
        removeTrailingBR = 1
        removeComments = 1

        proc{
                dontConvBRtoParagraph = 1
               
                ## allowed tags outside <p>
                allowTags =  br, ul, li, b, i, u
                denyTags = font, table, tbody, tr, th, td, h1, h2, h3, h4, h5, h6 div, p, re, blockquote, strong, em, span, sub, sup, strike, a, img, nobr, hr, tt, q, cite, abbr, acronym, center, ol
               
                HTMLparser_rte {
                        ## allowed/denied tags
                        allowTags < RTE.default.proc.allowTags
                        denyTags < RTE.default.proc.denyTags
            }
               
                entryHTMLparser_db = 1
                entryHTMLparser_db {
                        ## tags die erlaubt/verboten sind
                        allowTags < RTE.default.proc.allowTags
                        denyTags < RTE.default.proc.denyTags
                }
        }
}
RTE.default.enableWordClean.HTMLparser < RTE.default.proc.entryHTMLparser_db
spL ·

Sollte noch erwähnt sein, dass es Funktioniert wenn ich im Backend die Datensätze im Sys-Ordner bearbeite. Dort werden sämtliche Tags schon beim Copy+Paste im RTE entfernt.
Im Frontend gibts es via FE-Edeting die möglichkeit die Datensätze ebenfalls zu bearbeiten, hier wird aber leider nichts geparsed #angry#