Streaming live at 10am (PST)

Custom code to open all links in rich text in new tab

Hello,

I need to set all links within a rich text field to open in a new tab by default. The rich text field will probably have a style attached to it, if that matters. The reason is that I have rich text fields with dozens and sometimes hundreds of links and it’s not feasible to go through the multiple little clicks needed to set “open in new tab” for each one individually (this is a UI problem in Webflow imo).

My understanding is this is done using custom code. I have tried both of the following and neither work. Can someone help?


Here is my site Read-Only: Webflow - Surrogacy Voices