[Typo3-german] RTE entfernt DIVs

Maik Caro maik.caro at viebranz.de
Wed Aug 31 17:10:45 CEST 2005


Ich würd eja nie manuell DIV's einfügen.
Warum stellst du nicht einfach ein neues Absatzformat im RTE ein.

Siehe
http://typo3.org/documentation/tips-tricks/customizing-the-rich-text-editor/

Ich weiß nicht ob dir das jetzt direkt weiterhilft, aber so würde ich 
das machen, dann kannst du auf die manuellen DIV's komplett verzichten.

-- 
maik


Friedger Stiasny schrieb:

> 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>&nbsp;</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