Changes between Initial Version and Version 1 of Ticket #1427
- Timestamp:
- Jan 27, 2008, 11:49:42 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1427
-
Property
Summary
changed from
Autodected clipboard contents on Paste
toAutodetect clipboard contents on Paste
-
Property
Summary
changed from
-
Ticket #1427 – Description
initial v1 3 3 The access to the clipboard contents was easy in IE<7, but in IE7 by default the user will be faced with two warnings (#89), and in the rest of the browsers it's even harder. 4 4 5 The idea would be to allow the paste event to take place and compare the snapshot of the source just before and after it takes place, the difference is the clipboard content that then it can be cleaned up from Word rubbish, do a fullformat clean up or even convert it to plain text. Then it's a matter of revert back to the previous undo state and insert the cleaned up code.5 The idea would be to allow the paste event to take place and compare the snapshot of the source just before and after it happens, the difference is the clipboard content that can be cleaned from Word rubbish, do a full-format clean up or even convert it to plain text. Then it's a matter of revert back to the previous undo state and insert the cleaned up code. 6 6 7 This would also allow more easily to use designMode to high tlight the source view.7 This would also allow more easily to use designMode to highlight the source view. 8 8 9 9 This page has an implementation of a JS diff algorithm that could be a base for this code: http://en.wikipedia.org/wiki/User:Cacycle/diff it includes references to other implementations that could be worth checking if this doesn't work just as expected.