DEV Community

Discussion on: Auto-linking URLs with Trix Editor and StimulusJS

Collapse
 
emilianolch profile image
Emiliano López

Thanks for this post.

I made a little change to your code. Instead of adding and removing the event listeners in the javascript code, you can put data: { action: 'paste->trix-paste#pasteHandler' } into rich_text_area options.