Page MenuHomePhabricator

Hyperlinks from spreadsheets are pasted into Visual Editor as links only if they are internal
Closed, DuplicatePublic

Description

As far I can see, at the moment, if a cell in a spreadsheet (Excel, Google Sheets) is a link to a Wikipedia article (e.g. https://en.wikipedia.org/wiki/CNN), then it will be correctly pasted as an internal link ([[CNN]]). However, if a cell in a spreadsheet is a link to some other website (e.g. https://www.cnn.com) only the link title will be pasted. It should be pasted as an actual link ([https://www.cnn.com CNN]).

To reproduce:

Expected result: The top cell in the second column of the table will have an internal link to [[CNN]] and the bottom cell in the second column is an external link to https://www.cnn.com

Actual result: The top cell in the second column of the table is an internal link to [[CNN]] and the bottom cell in the second column is the text "CNN" without a link.

Event Timeline

Amire80 created this task.Jul 15 2019, 7:53 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 15 2019, 7:53 AM
Amire80 updated the task description. (Show Details)Jul 15 2019, 8:20 AM
TheDJ added a subscriber: TheDJ.Jul 15 2019, 1:06 PM

Pretty sure this is: T129546: Support preserving external links in pasted HTML content

Pasting <a> link elements that are not from VE itself is not allowed/converted to text..