Opened 9 years ago
Last modified 8 years ago
#13569 confirmed Bug
Drag and drop link pastes URL in plain text
Reported by: | Adrià Vilanova Martínez | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.5.0 |
Keywords: | Cc: | jocdeladria@…, satya_minnekanti@… |
Description
This is a regression. It worked in version 4.4.8, but doesn't actually work in version 4.5.0 onwards.
Steps to reproduce:
- Go to the demo page or any editor from the nightly build.
- Drag any link you can find in that page into the editor.
What should happen: The editor should contain a link, with the title of the page and the URL in the href attribute, as shown in the first screenshot.
What happens instead: The editor contains the plain text URL, as shown in the second screenshot.
Reproduced on OS X 10.10.4 with Chrome 44.0.2403.89 beta and Safari 8.0.7.
Additional info: You can check out how it worked in version 4.4.8 in the following JSFiddle: http://jsfiddle.net/jm9syL75/
Attachments (2)
Change History (9)
Changed 9 years ago by
Attachment: | Screenshot 2015-07-22 13.43.20.png added |
---|
Changed 9 years ago by
Attachment: | Screenshot 2015-07-22 13.49.10.png added |
---|
Second screenshot (NOT working as intended)
comment:1 Changed 9 years ago by
Cc: | jocdeladria@… added |
---|
comment:2 Changed 9 years ago by
Status: | new → confirmed |
---|
WFM on Chrome Version 44.0.2403.89 – https://www.youtube.com/watch?v=vSrkFJrqfMk&feature=youtu.be
It does not work on Safari, but that's due to Safari's incomplete clipboard API implementation. CKEditor only gets plain text and nothing more. This issue wasn't happening in 4.4.8, because only since 4.5.0 CKEditor intercepts dropped data. Before that CKEditor was allowing the browser to handle dnd, but that was a cause of a whole spectrum of problems. So the change was necessary, but unfortunately limited capabilities of the clipboard API on some browsers caused issues like this one.
You can try to report this to the Webkit team. Hopefully they will be interested in improving the integration.
On the CKEditor side you can install the http://ckeditor.com/addon/autolink plugin which will turn URL texts into links.
comment:3 Changed 9 years ago by
Aw, it seems that now it works when dragging any link from the page... Kind of weird hehe
Try dragging the URL from the omnibox into the editor. It should display the title of the page and a link, as CKEditor did before, but now it does not.
I attach a GIF showing the problem:
comment:5 Changed 9 years ago by
There is a ticket with the same root cause but concerns D&D images - #14349.
comment:6 Changed 9 years ago by
Cc: | satya_minnekanti@… added |
---|
First screenshot (working as intended)