• Resolved amulet

    (@amulet)


    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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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">';

    Thread Starter amulet

    (@amulet)

    That worked! Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding target=”_top” to Quicktags’ is closed to new replies.