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.