Forums

[resolved] Adding target="_top" to Quicktags (3 posts)

  1. Amulet
    Member
    Posted 6 years ago #

    I don't know javascript, and I'd like the link button in quicktags.js to include the attribute target="_top" (or maybe "_blank"; still haven't decided yet) to links in posts. How do I do that? Thanks!

  2. Mark (podz)
    Support Maven
    Posted 6 years ago #

    Untried.
    WP 1.5.2

    Line 371 of quicktags.js:
    edButtons[i].tagStart = '<a href="' + URL + '">';

    Try making that line like this;
    edButtons[i].tagStart = '<a href="' + URL + '" target="_blank">';

  3. Amulet
    Member
    Posted 6 years ago #

    That worked! Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic