Opened 10 years ago
Last modified 10 years ago
#13071 confirmed Bug
Select content on drop, move selection to the end on paste — at Initial Version
Reported by: | Piotr Jasiun | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.5.0 Beta |
Keywords: | Cc: |
Description
All application I tests has a different behavior for copy and paste and for drag and drop.
- After paste, caret is at the end of the pasted content (what make sense, user most probably want to start typing there).
- After drop, drop content is selected (what also make sense, because it may happen that user drop the content in not exactly correct position and want to drag it again).
At the moment we always put the caret at the end, handle the drop in the "paste" way. The problem is that now insertHtml
set the selection and this method does not what operation causes insertion. Fortunately paste event has such information, so the selection should be done by paste event of information about the type of the selection should be passed to the insertHtml
. The second way seems to be better because of backward compatibility.