quill-paste-smart icon indicating copy to clipboard operation
quill-paste-smart copied to clipboard

Issue with recognising links in between pasted text

Open colenocks opened this issue 2 years ago • 2 comments

Problem

When I paste a text like this test test test https://github.com test test, the module does not recognise the link in between and renders them all as plain text.

This however is recognised just fine with the default clipboard onPaste method.

What I tried

On line 103, I replaced this

delta = delta.insert(content);

with

delta = delta.concat(this.convert(content))

This seemed to work. Is there a reason why the plainText is not handled with the this.convert method?

Thanks

colenocks avatar Oct 04 '23 15:10 colenocks

Hi @colenocks as far as i remember, convert handles also all sorts of html tags. But I'm not entirely sure .. i need to look into it.

artem-schander avatar Oct 06 '23 08:10 artem-schander

Thanks for the swift response @Artem-Schander. Looking forward to know what you deduce from it.

colenocks avatar Oct 06 '23 08:10 colenocks