[TYPO3] Keeping classes in htmlArea RTE
Rodrigo Cea
public at altamira.cl
Sun Oct 29 02:09:31 CEST 2006
Hello,
While upgrading from 3.7 to 4.0.2, my RTE has started giving me problems.
Situation: I have a series of CSS classes defined in the RTE parapgraph
settings. They show up in the selector, and I can apply and preview them
in the backend. However, when I save them, the RTE cleans them out,
replacing, for example: "<div class=titulo>" with "<p>".
Here's my page TSConfig:
# General configuration of the available classes:
RTE.default.disabled = 0
RTE.default.showButtons =
cut,copy,paste,formatblock,bold,italic,underline,left,center,right,orderedlist,unorderedlist,outdent,
indent,link,table,image,line,chMode
RTE.classes {
titulo {
name = Título
value = font:bold; color:#f90; font-family:"Century Gothic";
font-size:36px
}
subtitulo {
name = Subtítulo
value = font:bold; color:#666; font-family:"Century Gothic";
font-size:16px;
}
t2 {
name = Título 2
value = font:bold; color:#f90; font-family:"Century Gothic";
font-size:32px
}
t3 {
name = Título 3
value = font:bold; color:#f90; font-family:"Century Gothic";
font-size:28px
}
t4 {
name = Título 4
value = font:bold; color:#f90; font-family:"Century Gothic";
font-size:24px
}
t5 {
name = Título 5
value = font:bold; color:#f90; font-family:"Century Gothic";
font-size:20px
}
t6 {
name = Título 6
value = font:bold; color:#f90; font-family:"Century Gothic";
font-size:18px
}
firma {
name = Firma
value = align: right; font:bold; padding: 0px 0px 0px 24px;
}
cita {
name = Cita
value = padding: 0px 24px;
}
}
RTE.default.classesParagraph = P, titulo, subtitulo, t3, t5, firma, cita
RTE.default.hidePStyleItems = H1,H2,H3,H4,H5,H6,pre
RTE.default.proc.allowTags = titulo, subtitulo, firma, cita
RTE.default.proc.HTMLparser_rte.tags.titulo.protect = 1
RTE.default.proc.allowTags = div
RTE.default {
proc {
dontConvBRtoParagraph = 1
}
}
More information about the TYPO3-english
mailing list