cca / libraries_wagtail

CCA libraries site using Wagtail CMS
https://libraries.cca.edu/
Other
9 stars 2 forks source link

impossible to make links open in a new window #62

Closed phette23 closed 3 years ago

phette23 commented 6 years ago

The Wagtail text editor (draftail) doesn't allow you to use a target="_blank" attribute on hyperlinks to force them to open in a new window.

The majority of the time this behavior is desirable, but not having the option to do otherwise is problematic in some instances.

phette23 commented 5 years ago

See wagtail/wagtail#1167 where they just finished some work on this. Docs: https://docs.wagtail.io/en/latest/advanced_topics/customisation/rich_text_internals.html#link-rewrite-handlers

phette23 commented 3 years ago

The link rewrite handlers only operate site-wide, so while we could do something like make all external (or another certain type) links open in a new window we cannot specify particular ones, so this is still blocked and it seems like the Wagtail team really does not want to implement something in the link UI to make one-off exceptions. I'm just going to close this for now to clean up the issue queue and if it's requested again, I can research whether the status has changed.