[Typo3] RTE replaces <div> with <p>

Rodrigo Cea rcea at altamira.cl
Sat May 21 23:24:49 CEST 2005


I have set up my RTE to insert the classes I need in my site like so:

RTE.classes {
  title {
    name = Title
    value = font:bold; size:16;
  }
  subtitulo {
    name = Subtitle
    value = font:bold; size:13;
  }
  quote {
    name = quote
    value = padding:8px; color:#666666 ;
  }
  sig{
    name = sig
    value = align:right; color:#333333;
  }
}
RTE.default {
  classesParagraph = title, subtitle, quote, sig
  hidePStyleItems = *
}

This works so-so: it shows the right classes in the RTE, but strips them
out when I save the content element.

If I look at the source code before saving, the text looks like this:

<DIV class=title>Some Text</DIV>

after saving, it looks like:

<p>Some Text</p>

I'm assuming there's some RTE-related setting which says "strip divs,
forget the class and replace with a <p> tag", which I should be able to
turn off, no? Or do I have to specifically allow <div>s in RTE somewhere?

I have tried commenting out  line 125 of
ext/css_styled_content/static/setup.txt from

remapTag.DIV = P

but it changes nothing.

Thanks,

ROdrigo



More information about the TYPO3-english mailing list