[TYPO3-core] FYI: Fixed bug #15430: htmlArea RTE: Text not editable after pasting with server-based cleaning

Stanislas Rolland typo3 at sjbr.ca
Sat Sep 25 08:35:49 CEST 2010


FYI: The attached SVN patch was committed.

Type:
Bugfix

Problem:
The problem arises when id attribute is removed from span tags by 
server-based cleaning on paste.

In non-IE browsers, special span tags are added by the RTE in order to 
be able to restore the selection and cursor position when the cleaned 
text is returned from the server. If the id attribute is removed, or if 
the span tag is cleaned-away, the special span tag cannot be located, an 
error is raised and text cannot be edited.

Solution:
The attached patch:
- prevents the error from being raised: if the span tag or its id 
attribute was removed, the cursor will be put at the beginning of the text;
- modifies the incoming parser configuration in order to allow span tags 
with id attribute.

A note is also added to the manual regarding the configuration of 
enableWordClean.

Bugtracker references:
http://bugs.typo3.org/view.php?id=15430

Branches:
trunk (revision 8886)
TYPO3_4-4 (revision 8887)
TYPO3_4-3 (revision 8888)

Regards,
Stanislas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rtehtmlarea_bugfix_15430_trunk_v2.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100925/7e04bdcd/attachment.txt>


More information about the TYPO3-team-core mailing list