How to make links in lexxy content open in a new tab by default (target="_blank")? #556
-
|
Hi lexxy team and community :) Is there an easy way to make links in the lexxy content have I'm writing a web app in rails where some pages have extra details and links added using lexxy. But when users click the links they leave the app. Ideally it would take them to a new tab (esp. for users on the pwa). Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hey @jpacostar - I would consider processing the content server-side on render to add To do it in Lexxy on the client-side, use the For advanced needs, you could use the experimental Lexxy Extensions with Node Replacement to override the underlying link node. |
Beta Was this translation helpful? Give feedback.
Hey @jpacostar - I would consider processing the content server-side on render to add
target="_blank"to links to another host. That would give you 100% coverage.To do it in Lexxy on the client-side, use the
lexxy:insert-linkevent toreplaceLinkWithand add the attribute.For advanced needs, you could use the experimental Lexxy Extensions with Node Replacement to override the underlying link node.