Sorry, we don't support your browser.  Install a modern browser

Writer field: Pasting URLs over existing text

J

Currently, adding a link to an external website to existing text in the Writer field requires me to select the text, click on the link button in the toolbar that appears after I’ve selected the text. This action opens a modal where I paste the link into a form and then confirm adding the link by clicking the insert button.

This is a great approach in many scenarios because it provides a lot of power and flexibility when working with all kinds of links. However, it also means adding a link to an external website to some existing text quite a few clicks.

To make the editing process faster and more convenient, it would be great to be able to simply paste URLs directly onto selected text. This change would significantly reduce the number of clicks required to add the most common type of link to text in Writer fields.

Not sure if this has been discussed before. It came up in multiple client projects, so I thought I would mention it here.

2 years ago

I looked into this - where I hit the wall is that the underlying prosemirror library offers ways to transform the pasted content, but not to hook from a mark into the paste event before the selection has been replaced by the pasted text, but only once it has been replaced and then transforming the pasted text.

2 years ago