[Typo3-german] RTE entfernt DIVs
    Friedger Stiasny 
    friedger.stiasny at media-lights.de
       
    Wed Aug 31 16:35:06 CEST 2005
    
    
  
Hallo!
Wir haben hier mal wieder ein RTE-Problem:
Manuell hinzugefügte DIV-Tags, die andere Tags enthalten (z.B. h3, p) werden komplett entfernt bzw. durch ein leeres <p> </p> vor der betreffenden Passage ersetzt, was natürlich nicht Sinn der Sache ist.
Beispiele:
Eingabe im RTE:
<div class="tipp"><p>Text hier</p></div>
... wird zu:
<P>Text hier</P>
Oder Eingabe im RTE:
<div class="tipp"><h3>Header</h3><p>Text hier</p></div>
... wird zu:
<DIV class=tipp></DIV>
<H3>Header</H3>
<P>Text hier</P>
Aktuelle TSConfig:
#allow editing of normal and right column only
mod.web_layout.tt_content.colPos_list = 0, 2
#set processing options for RTE
RTE.default.proc {
  #transformation method
  overruleMode = ts_css
  xhtml_cleaning = 0
  dontConvBRtoParagraph = 1
  #tags allowed outside p & div
  allowTagsOutside = img,hr
  allowTags = table, tbody, tr, th, td, h1, h2, h3, h4, h5, h6, div, p, br, span, ul, ol, li, pre, blockquote, strong, em, b, i, u, sub, sup, strike, a, img, nobr, hr, tt, q, cite, abbr, acronym
  allowedClasses = tipp, plain
  #clean tags
  noAttrib = b, i, u, strike, sub, sup, strong, em, quote, blockquote, cite, tt, br, center
  tags.hr.allowedAttribs = id, class
  tags.p.allowedAttribs = id, class
  tags.div.allowedAttribs = id, class
  keepPDIVattribs = id, class
}
# parser content to rte
HTMLparser_rte {
  allowTags < RTE.default.proc.allowTags
  denyTags  < RTE.default.proc.denyTags
  allowedClasses < RTE.default.proc.allowedClasses
}
# parser content to db
RTE.default.proc.entryHTMLparser_db = 1
RTE.default.proc.entryHTMLparser_db {
  allowTags < RTE.default.proc.allowTags
  denyTags  < RTE.default.proc.denyTags
  allowedClasses < RTE.default.proc.allowedClasses
}
Das ist in meinen Augen ein höchst seltsames Verhalten, vielleicht hat jemand eine Lösung dafür. Ziel ist, dass ich ein DIV um andere Tags setzen kann und das auch so bleibt. Wäre echt dankbar für einen Tipp.
Friedger Stiasny (stiasny)
    
    
More information about the TYPO3-german
mailing list