Hi,
I'm creating Confluence pages using the REST API and everything works great, but how can I make external links on these pages to open in a new window/tab?
What I've tried in my XHTML is:
<a href="http://www.google.com" target="_blank">External link</a>
but the "target" property gets stripped upon submission.
I was thinking about doing the same thing with jQuery (as described here):
<script>
jQuery(document).ready(function() {
jQuery(".external-link").attr("target", "_blank");
});
</script> but I'm unsure on how to inject this <script> into my page using the REST API.
I know this issue came up quite a few times here, but none of the answers addressed the REST API part of my question.
Thanks,
Piotr