[TYPO3-RTE] <//span> caused by rmTagIfNoAttrib [solution]

Ulrich Fischer ulrich-fischer at gmx.net
Thu Sep 6 21:00:56 CEST 2007


Hi,

Ulrich Fischer schrieb am 07.02.2007 14:24:
> when text is pasted from ms-word, there
> remain </span> without an opnening <span>.
> Those are converted in <//span> and are not
> deletable in html-Area.

Finally I found a simple solution to this problem.
'nesting' does the trick :-)

PAGE TS_CONFIG:

  ## No <span style="..."></span>
RTE.default.proc.tags{
   span.allowedAttribs = class
   span.nesting = 1
   span.fixAttrib.style.unset = 1
   span.rmTagIfNoAttrib = 1
}
RTE.default.proc.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>'.


So it is possible to save <span class="colored"> with classes
and get rid of <span style="font-size:20pt">. Font-tags can
be deleted without any check (removeTags).


Greetings

Ulrich

PS: May be it would be usefull to write that
     in the documentation of htmlAREA?

-- 
http://www.sunfish.de


More information about the TYPO3-project-rte mailing list