[TYPO3-RTE] <//span> caused by rmTagIfNoAttrib
Ulrich Fischer
ulrich-fischer at gmx.net
Wed Feb 7 14:24:56 CET 2007
Hi,
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.
I guess this appears only in pragraphs inside
tags as <td> </td> or <link> <//link>.
Of course it depends on RTE configuration:
-------------------------------------------------------
Delete style attribute of span tags:
RTE.default.proc.entryHTMLparser_db.tags.span.fixAttrib.style.unset = 1
And after that:
RTE.default.proc.entryHTMLparser_db.rmTagIfNoAttrib = span
--------------------------------------------------------
If rmTagIfNoAttrib is switched of, everthing is allright:
<span>Some text</span>
In efault proc options in Page TSconfig for htmlArea RTE
there is only ...style.unset = 1
A look in class.t3lib_parsehtml_proc.php shows, that it
is quite complex -
so it is better to let span tags to stay, even they
don't have any attribute?
Thanks for advice
Ulrich
--
http://www.sunfish.de
More information about the TYPO3-project-rte
mailing list