[TYPO3-rte] Colors in HTMLsrea RTE
Jeppe Donslund
jd at webmasters.dk
Tue Mar 9 10:23:27 CET 2010
Hi Stanislas
It doesn't seem to work.
Here is my TSconfig are there any error?
RTE.default.proc.allowTags := addToList(font)
RTE.default.blindImageOptions=magic
RTE.default.proc.entryHTMLparser_db.removeTags := removeFromList(font)
# ==================================
# DEFAULT RTE PROCESSING RULES
# ==================================
## Tilladte farver i RTE
# General configuration of the available colors
RTE.colors {
color1 {
name = Red
value = #a92a18
}
color2 {
name = Light grey
value = #c4c4c4
}
noColor {
name = Transparent
value =
}
}
RTE.default.useCSS = 1
# Spcific settings for the font color selector:
RTE.default.colors = color1, color2, noColor
# Disables the color picker matrix in all color dialogs
RTE.default.disableColorPicker = 1
RTE.default {
defaultLinkTarget = _top
##Definition af de forskellige klasser
classesCharacter = color1, color2, noColor
classesParagraph = color1, color2, noColor
# classesImage = [skriv dine klasser her]
# classesLinks = [skriv dine klasser her]
# classesAnchor = [skriv dine klasser her]
# classesTable = [skriv dine klasser her]
## List all class selectors that are allowed on the way to the database
proc.allowedClasses = color1, color2, noColor
## Tilladte knapper
showButtons = bold, italic, underline, left, center, right,
justifyfull, orderedlist, unorderedlist, outdent, indent, textcolor,
bgcolor, insertcharacter, line, link, image, findreplace, spellcheck,
chMode, inserttag, removeformat, copy, cut, paste, undo, redo, showhelp,
table, toggleborders, tableproperties, rowproperties, rowinsertabove,
rowinsertunder, rowdelete, rowsplit, columninsertbefore,
columninsertafter, columndelete, columnsplit, cellproperties,
cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge,
linebreak, blockstylelabel, blockstyle, formatblock
## Rækkefølgen af knapperne
toolbarOrder = bold, italic, underline, space, bar, space, left,
center, right, justifyfull, space, bar, space, orderedlist,
unorderedlist, outdent, indent, space, bar, space, insertcharacter,
line, link, image, textcolor, bgcolor, space, bar, space, chMode,
inserttag, bar, space, linebreak, copy, cut, paste, undo, redo, space,
bar, space, findreplace, spellcheck, space, removeformat, space, bar,
space, linebreak, blockstylelabel, blockstyle, textstylelabel,
textstyle, space, formatblock, space, linebreak, table, toggleborders,
tableproperties, rowproperties, rowinsertabove, rowinsertunder,
rowdelete, rowsplit, columninsertbefore, columninsertafter,
columndelete, columnsplit, cellproperties, cellinsertbefore,
cellinsertafter, celldelete, cellsplit, cellmerge, bar, space,
## Instruct htmlArea RTE to ignore properties mainStyleOverride and
inlineStyle.
ignoreMainStyleOverride = 1
## Følgende styleSheet bliver benyttet
## HUSK AT ændre navnet på stylesheet ved ændringer, da
## ændringer ellers ikke slår igennem
#contentCSS = fileadmin/templates/[navn]/css/htmlarea.css
}
RTE.default.proc {
## ALLOWED P & DIV ATTRIBUTES
keepPDIVattribs := addToList(style)
## CONTENT TO DATABASE
entryHTMLparser_db {
tags {
## CLEAN ATTRIBUTES ON THE FOLLOWING TAGS
span.fixAttrib.style.unset >
span.allowedAttribs := addToList(style)
p.allowedAttribs := addToList(style)
div < .p
hr.allowedAttribs := addToList(style)
b.allowedAttribs := addToList(style)
blockquote.allowedAttribs := addToList(style)
em.allowedAttribs := addToList(style)
i.allowedAttribs := addToList(style)
strike.allowedAttribs := addToList(style)
strong.allowedAttribs := addToList(style)
u.allowedAttribs := addToList(style)
}
}
}
## Use same RTE processing rules in FE
RTE.default.FE.proc < RTE.default.proc
More information about the TYPO3-project-rte
mailing list