• Resolved aaronbennett2097

    (@aaronbennett2097)


    First time using the plugin and think it’s great, really helps tweak the simple text content.

    The main feature I’m using is to add links to the text, but there’s one issue, I can’t choose to open a link in a new window / tab.

    Would it be possible to add this functionality? Maybe have two link options, one for internal, one for external?

    Thanks for creating a great plugin!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Huebner

    (@hube2)

    I didn’t build medium editor, I only implemented it as an ACF field type. I keep it updated, but unless they build a feature like this into it I’m not likely to do it myself. https://github.com/yabwe/medium-editor

    Thread Starter aaronbennett2097

    (@aaronbennett2097)

    Thanks John and understood.

    I raised a issue on GitHub to see if it’s something they could implement.

    Thanks again.
    Aaron

    Thread Starter aaronbennett2097

    (@aaronbennett2097)

    Hi John.

    Just to follow up, I solved this with a simple but of query to append the blank target to any link in the field.

    Had to wrap the field in a div (.linked-text) to target it specifically, but is a simple fix, sharing for anyone else who needs it…

    $(‘.linked-text a’).attr(‘target’, ‘_blank’);

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘open link in new tab’ is closed to new replies.