New Topic
Click here to advertise on this slot

how to make a pasted link a hyperlink when pasted?

2021-06-01 07:36:23 UTC
hello, I'm have a rich text editor on a webpage for which I'm using quill.js. When I paste I a link it doesn't automatically become a hyperlink. Instead I have to do it by manually making it a hyperlink. How can I automatically make it a hyperlink when the link is pasted inside the richtext editor? My quill.js config is this: var options = { placeholder: 'Type here..', readOnly: false, theme: 'snow' }; editor = new Quill('#div-id', options); Thanks in advance.
2021-06-02 23:04:50 UTC
<p>There is a nice module to handle this:</p><p>This module can be included onto the page using a CDN:</p><p>Or it can be installed into a project using npm:</p><p>And it can be configured pretty easily:</p><p><br></p><p><br></p>