#1427: Autodetect clipboard contents on Paste
--------------------------+-------------------------------------------------
Reporter: alfonsoml | Owner:
Type: New Feature | Status: new
Priority: Normal | Milestone:
Component: General | Version:
Resolution: | Keywords:
--------------------------+-------------------------------------------------
Changes (by alfonsoml):
* summary: Autodected clipboard contents on Paste => Autodetect
clipboard contents on Paste
Old description:
> I've commented previously on this idea, but I can't find it so I'll leave
> this open so it doesn't get lost:
>
> 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.
>
> 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 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.
>
> This would also allow more easily to use designMode to hightlight the
> source view.
>
> 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.
>
> This same algorithm could be used to mark insertions or deletions in the
> content.
New description:
I've commented previously on this idea, but I can't find it so I'll leave
this open so it doesn't get lost:
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.
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.
This would also allow more easily to use designMode to highlight the
source view.
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.
This same algorithm could be used to mark insertions or deletions in the
content.
--
Ticket URL: <http://dev.fckeditor.net/ticket/1427#comment:1>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac