Bug #21024
closed
htmlArea RTE: superfluous span tags in content after server-based cleaning on paste operation
Added by Igor about 15 years ago.
Updated about 6 years ago.
Description
After pasting plaintext in the RTE a code like
<br /><span id="1252576999480S" style="display: none;">
is added after every pasted passage.
<br/> is unwanted
<span.... makes the page invalid for XHTML Validator.
(issue imported from #M11915)
Files
Please report what version of TYPO3, what browser, what version of the browser you are using.
I don't know, if a german-speaking thread is a big help for Stan so:
The solution which seems to work for the people in this thread is to set RTE.default.enableWordClean = 0.
Having it set to 1 produces the error.
The problem arises when server-based cleaning is invoked on paste. In such case, intrusive bookmarks are inserted in the content in order to be able to restore the cursor position upon completion. The bookmarks are then removed.
However, cleaning is done asynchronously. Therefore, if multiple paste operations are done in a short lapse of time, bookmarks from previous requests are resent to the server and cannot be removed on return.
The attached patch fixes the issue by making the cleaning request synchronous. As a result, if the server-based cleaning operation takes some time, the author may experience a delay before (s)he can perform another operation.
Committed to SVN TYPO3core trunk (revision 5929) and branch TYPO3_4-2 (revision 5930).
- Status changed from Resolved to Closed
Also available in: Atom
PDF