[TYPO3-core] FYI: Added feature #8349: htmlArea RTE: Clean paste feature with three options

Stanislas Rolland typo3 at sjbr.ca
Wed Nov 10 07:50:50 CET 2010


FYI: The attached SVN patch was committed.

Type:
Feature

Problem:
Pasting into the RTE content that was copied from external sources, 
especially from MS Word, gives a lot of trouble.

Solution:
The attached patch adds two buttons to the RTE toolbar.

The first button opens a dialogue that allows to set an alternate paste 
behaviour, one of: paste as plain text, paste structure only, or paste 
structure and basic format. This button/dialogue is not available in BE 
when system extension Setup is installed. In such case, the BE user can 
use User Settings to select the alternate paste behaviour. A new tab for 
RTE-specific User Settings is appended to User Settings.

The second button is a toggle that activates the selected alternate 
behaviour, or reverts back to normal full paste.

More details may be found in TYPO3 context sensitive help included with 
the patch.

Specific behaviour of "Paste structure only" and "Paste structure and 
basic format" is configurable in Page TSConfig.

In Internet Explorer, for "Paste structure only" and "Paste structure 
and basic format", a window with "pasting pad" is opened. The user needs 
to paste into the pasting pad, the content of the pasting pad is then 
cleaned, and is inserted in the editing area upon closing this window. 
In Firefox, Safari and Chrome, paste is (badly) hacked so that no such 
pasting pad is necessary.

The feature is not available in Opera which never fires the paste event.

Note:
Many thanks to Otto van Bruggen for sponsoring part of this work.

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

Branches:
trunk (revision 9325)

Regards,
Stanislas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rtehtmlarea_feature_8349.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101110/c227d4cf/attachment.asc>


More information about the TYPO3-team-core mailing list