Forum

Thread tagged as: Question, Configuration

File upload target _blank

Is there a way to configure target="_blank" for all file upload links when using textile in the MarkItUp editor?

I was reviewing the image_upload.js in the Markitup folder and I did find the following code, but I wasn't sure how to correctly add target="_blank".

// FILES switch(language.toLowerCase()) { case 'textile': var s_text = r; if (alt) s_text = alt; output = '"'+s_text+'":'+r; break;

Thank you, Ryan

Ryan McGuire

Ryan McGuire 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

You're better to do this with JavaScript, really. It's a behaviour-layer thing.

https://css-tricks.com/snippets/jquery/open-external-links-in-new-window/