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:

  1. Go to the demo page or any editor from the nightly build.
  2. 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)

Screenshot 2015-07-22 13.43.20.png (29.5 KB) - added by Adrià Vilanova Martínez 9 years ago.
First screenshot (working as intended)
Screenshot 2015-07-22 13.49.10.png (35.7 KB) - added by Adrià Vilanova Martínez 9 years ago.
Second screenshot (NOT working as intended)

Download all attachments as: .zip

Change History (9)

Changed 9 years ago by Adrià Vilanova Martínez

First screenshot (working as intended)

Changed 9 years ago by Adrià Vilanova Martínez

Second screenshot (NOT working as intended)

comment:1 Changed 9 years ago by Adrià Vilanova Martínez

Cc: jocdeladria@… added

comment:2 Changed 9 years ago by Piotrek Koszuliński

Status: newconfirmed

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 Adrià Vilanova Martínez

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:4 Changed 9 years ago by Adrià Vilanova Martínez

Hi again, did you try what I wrote in my last message?

comment:5 Changed 9 years ago by Jakub Ś

There is a ticket with the same root cause but concerns D&D images - #14349.

comment:6 Changed 9 years ago by Satya Minnekanti

Cc: satya_minnekanti@… added

comment:7 Changed 8 years ago by Jakub Ś

Other issues for autolink plugin: #13569, #14769, #14903, #16685.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy