[TYPO3-german] htmlarea RTE - Textfarben
Christian Börstler
christian_boerstler at netz-d-sign.de
Sun Apr 30 12:42:15 CEST 2006
Hallo Liste,
ich habe unter T3-4.0 mit folgendem Code im root als TS-Skript mehr
Buttons im RTE aktiviert:
/
RTE.default.showButtons = textstyle, textstylelabel, blockstyle,
blockstylelabel, bold, italic, underline, left, center, right,
orderedlist, unorderedlist, insertcharacter, line, link, image,
removeformat, table, toggleborders, tableproperties, rowproperties,
rowinsertabove, rowinsertunder, rowdelete, rowsplit, columninsertbefore,
columninsertafter, columndelete, columnsplit, cellproperties,
cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge,
findreplace, insertcharacter, undo, redo, showhelp, about, fontstyle,
formatblock, fontsize, strikethrough,lefttoright, righttoleft,
textcolor, textindicator, user, spellcheck, chMode, inserttag, outdent,
indent, justifyfull, subscript, superscript, acronym, copy, cut, paste
RTE.default.proc {
# tags die erlaubt / verboten sind
allowTags = font, 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
# erlaubte attribute in p, div tags
keepPDIVattribs = align,class,style,id,span
allowTagsOutside = img,hr,span
# br wird nicht zu p konvertiert
dontConvBRtoParagraph = 1
#html parser einstellungen
HTMLparser_rte {
# tags die erlaubt/verboten sind
allowTags < RTE.default.proc.allowTags
# denyTags < RTE.default.proc.denyTags
# entfernt html-kommentare
removeComments = 1
# tags die nicht übereinstimmen werden nicht
entfernt (protect / 1 / 0)
keepNonMatchedTags = 0
}
}
/
Neu dazugekommen ist nun also der Button, mit dem ich dem Text im
Eingafeld eine Farbe geben kann.
Wenn ich jetzt eine Farbe auswähle, kommt im Quelltext der tag <span
style="color: rgb(102, 255, 0);"> (als Beispiel)
hinzu. Nach dem Speichern verschwindet der tag aber wieder aus dem
Quelltext. Die Textfarbe wird also nicht hinzugefügt.
Was muss ich dem Code noch hinzufügen, damit der Text auch farbig
gespeichert werden kann?
Danke für alle Antworten.
Gruss
Christian/
/
More information about the TYPO3-german
mailing list