[TYPO3-german] Re: <//span> nach Word copy and paste [Lösung]
Ulrich Fischer
ulrich-fischer at gmx.net
Thu Sep 6 21:17:38 CEST 2007
Hallo,
nun habe ich doch eine Lösung gefunden.
Mit 'nesting' funktioniert das Entfernen
von Tags ohne Attribut fehlerfrei.
PAGE TSCONFIG:
RTE.default.proc.entryHTMLparser_db {
tags{
span.allowedAttribs = class
span.fixAttrib.style.unset = 1
span.nesting = 1
span.rmTagIfNoAttrib = 1
}
removeTags = font
}
nesting: If set true, then this tag must have starting
and ending tags in the correct order.
Any tags not in this order will be discarded.
Thus '</B><B><I></B></I></B>' will be converted to '<B><I></B></I>'.
removeTags: Ist in der 'class t3lib_parsehtml' einfacher gehalten und
funktioniert problemlos.
Will man aber eigene span-Klassen definieren können, bleibt nur
die Möglichkeit bei <span style="..."> das style und dann die
<span>-Tags, die kein Attribut haben, zu entfernen.
--
http://www.sunfish.de
More information about the TYPO3-german
mailing list