Support » Fixing WordPress » edit quicktags target=”_blank”

Viewing 3 replies - 1 through 3 (of 3 total)
  • Mark (podz)

    (@podz)

    Support Maven

    Line 369 onwards;
    if (!edCheckOpenTags(i)) {
    var URL = prompt('Enter the URL' ,defaultValue);
    if (URL) {
    edButtons[i].tagStart = '<a href="' + URL + '" + target="'_blank'">';
    edInsertTag(myField, i);
    }

    Thank you.

    It works great!

    One tip. Remove the single quotes from each side of _blank. This messed me up until I figured out it didn’t have to be escaped out.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘edit quicktags target=”_blank”’ is closed to new replies.