[TYPO3-english] RTE and tt_news
StephenBungert
stephenbungert at yahoo.de
Wed Oct 22 17:55:39 CEST 2008
I have certain styles in the rte. They work fine in the normal content rte.
But in tt_news only some of the styles stay after saving (table styles). The
others when applied to para's don't.
Here is the page tsconfig that I use:
RTE {
# Define classes used
classes {
imageLeft {
name = Image (left)
value = margin-right: 15px; border: 1px solid #c1272d; margin-top:
3px;
}
fileLinks {
name = Files Links Paragraph
}
imageRight {
name = Image (right)
value = margin-left: 15px; border: 1px solid #c1272d; margin-top: 3px;
}
imageLeftBorderless {
name = Image (left, borderless)
value = margin-right: 15px; border: none; margin-top: 3px;
}
imageRightBorderless {
name = Image (right, borderless)
value = margin-left: 15px; border: none; margin-top: 3px;
}
quote {
name = Quote
value = font-weight: normal; font-style: italic; margin-left: 2.0em;
margin-right: 2.0em;
}
footnote {
name = Footnote
value = font-weight: normal; font-size: 0.8em; color: #9f9f9f;
}
greyCaps {
name = Grey Capitals
value = color: #9f9f9f; text-transform: uppercase; margin-bottom: 0px;
padding-top: 1.0em;
}
greyCapsBorder {
name = Grey Capitals (with border)
value = color: #9f9f9f; text-transform: uppercase; margin-bottom: 0px;
padding-top: 1.0em; border-top: 1px dotted #9F9F9F;
}
subSection {
name = Subsection
value = color: #9f9f9f; font-size: 1.1em; margin-bottom: 0em;
}
black {
name = Black
value = color: #000;
}
grey {
name = Grey
value = color: #9F9F9F;
}
red {
name = Red
value = color: #c1272d;
}
white {
name = White
value = color: #000;
}
calendarDate {
name = Calendar Date Column
value = width: 20%;;
}
tableCellGrey {
name = Table Cell: Grey
value = background: #cccccc; color: #000000;
}
tableCellGreyBordered {
name = Table Cell: Grey with Border
value = background: #e6e6e6; color: #000000 border: 1px solid #cccccc;
}
tableCellGreyDark {
name = Table Cell: Grey, Dark
value = background: #aaaaaa; color: #000000;
}
tableCellGreyLight {
name = Table Cell: Grey, Light
value = background: F2F2F2; color: #000000;
}
tableCellRed {
name = Table Cell: Red
value = background: #c1272d; color: #ffffff;
}
tableCellRedDark {
name = Table Cell: Red, Dark
value = background: #9F0913; color: #ffffff;
}
tableCellRedLight {
name = Table Cell: Red, Light
value = background: #F2DBDB; color: #000000;
}
tableCellWhite {
name = Table Cell: White
value = background: #ffffff; color: #000000;
}
stdtable {
name = Default White Borderless Table
value = background: #ffffff; color: #000000;
}
v1table {
name = FMF v1 Grey Table
value = background: #ff0000; color: #000000;
}
}
# Configure colours for the colour picker
colors {
black {
name = Black2
value = #000
}
grey {
name = Grey2
value = #9F9F9F
}
red {
name = Red2
value = #c1272d
}
white {
name = White2
value = #ffffff
}
}
default {
# Setup colour picker
disableColorPicker = 1
disableSelectColor = 0
colors = black, grey, red, white
# CSS
showTagFreeClasses = 1
contentCSS = fileadmin/templates/fmf/v2/css/rte_v2.css
# Specify classes
classesParagraph =
fileLinks,quote,footnote,greyCaps,greyCapsBorder,subSection
classesCharacter = black, grey, red, white
classesTD =
calendarDate,tableCellGrey,tableCellGreyLight,tableCellRed,tableCellWhite,tableCellGreyDark
classesTable = stdtable,v1table
classesImage =
imageLeft,imageRight,imageLeftBorderless,imageRightBorderless
# Hide some items
hidePStyleItems = pre,address
proc {
# Content to database
entryHTMLparser_db = 1
entryHTMLparser_db {
tags {
img >
p.fixAttrib.class.removeIfEquals = bodytext
table.fixAttrib.class.removeIfEquals = contenttable
}
}
}
# Setip Toolbar
showButtons = formatblock, class, blockstylelabel, blockstyle,
textstylelabel, textstyle, bold, italic, subscript, superscript,
orderedlist, unorderedlist, outdent, indent, textcolor, bgcolor,
textindicator, insertcharacter, image, 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
toolbarOrder >
toolbarOrder = bar, textindicator, space, bar, formatblock, class,
space, blockstylelabel, blockstyle, space, textstylelabel, textstyle,
linebreak, bar, bold, italic, subscript, superscript, space, bar,
orderedlist, unorderedlist, outdent, indent, space, bar, insertcharacter,
image, link, bar, space, findreplace, chMode, space, bar, undo, redo,
removeformat, textcolor, bgcolor, linebreak, bar, table, tableproperties,
space, bar, rowproperties, rowinsertabove, rowinsertunder, rowdelete,
rowsplit, space, bar, columninsertbefore, columninsertafter, columndelete,
columnsplit, space, bar, cellproperties, cellinsertbefore, cellinsertafter,
celldelete, cellsplit, cellmerge, bar, space, toggleborders, space
}
# Setup allowed classes
config {
tt_content.bodytext.proc.allowedClasses =
quote,footnote,greyCaps,greyCapsBorder,black,grey,red,white,subSection,calendarDate,tableCellGrey,tableCellGreyLight,tableCellRed,tableCellWhite,tableCellGreyDark,stdtable,v1table,imageLeft,imageRight,imageLeftBorderless,imageRightBorderless,fileLinks
}
}
Does anyone see anything I have done wrong? All the styles listed work in th
enormal RTE why not tt_news? Must I configure something else to get it to
work in tt_news?
-----
--
Stephen Bungert
--
View this message in context: http://www.nabble.com/RTE-and-tt_news-tp20113965p20113965.html
Sent from the TYPO3 English mailing list archive at Nabble.com.
More information about the TYPO3-english
mailing list