Bug #21024
closedhtmlArea RTE: superfluous span tags in content after server-based cleaning on paste operation
0%
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
Updated by Stanislas Rolland about 15 years ago
Please report what version of TYPO3, what browser, what version of the browser you are using.
Updated by Igor about 15 years ago
TYPO3 Version: 4.2.8
rtehtmlarea 1.7.11
Browser: Firefox 3.5.3 (Windows)
I found this: http://www.typo3.net/forum/list/list_post//91381/
- might help
Updated by Chris topher about 15 years ago
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.
Updated by Stanislas Rolland about 15 years ago
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.
Updated by Stanislas Rolland about 15 years ago
Committed to SVN TYPO3core trunk (revision 5929) and branch TYPO3_4-2 (revision 5930).