WordPress.org

Ready to get started?Download WordPress

Forums

TIP: Create links which open in a new window (7 posts)

  1. Callum Macdonald
    Member
    Posted 9 years ago #

    I've just changed my "Link" button on the post page so it automatically includes target="_blank" to all links, so they open in a new window automatically.

    It's done by editing the /wp-admin/quicktags.js file and changing:
    edButtons[i].tagStart = '';
    to
    edButtons[i].tagStart = '
    ';

    Simple!

    Enjoy, chmac.

  2. Callum Macdonald
    Member
    Posted 9 years ago #

    Hmm, cancel that, pasting the code didn't work, not sure why, but there you go!

  3. Kafkaesqui

    Posted 9 years ago #

  4. Roar
    Member
    Posted 8 years ago #

    Can you repaste this code?

  5. clintanderson
    Member
    Posted 8 years ago #

    I was wanting this code also, please post again.

    C

  6. Beel
    Member
    Posted 8 years ago #

    IF you want to use the invalid xhtml, you can view the source of this page to get all the posted code I bet.

  7. clintanderson
    Member
    Posted 8 years ago #

    How about the valid code, is there such a thing or is it a pipe dream?

    C

Topic Closed

This topic has been closed to new replies.

About this Topic