Feature #18758
closedhtmlArea RTE: Clean paste feature with three options
0%
Description
The paste function used in RTE give the editors and myself a lot of trouble. Especially when working with Microsoft Word.
The paste special function in Dreamweaver or Contribute give 4 different options.
1 text only
2 text with structure (paragraphs, lists, tables, etc)
3 text with structure plus basic formating (bold, italic)
4 text with structure plus full formating.
a sepparate option is possible to cleanup word paragraph spacing.
pasting would be nice with control shift v or shift apple v
To my opinion many would be helped with this feature.
(issue imported from #M8349)
Files
Updated by Otto van Bruggen over 16 years ago
Stanislas, what would be a good sponsorship to get this kind of feature?
Updated by Stanislas Rolland about 14 years ago
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.
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.
Updated by Stanislas Rolland about 14 years ago
Committed to SVN TYPO3core trunk (revision 9325).