Results 1 to 2 of 2

Thread: WYSIWYG link target

  1. #1
    Join Date
    Apr 2009
    Thanked 0 Times in 0 Posts

    Default WYSIWYG link target

    1) Script Title: openWYSIWYG 1.01 beta (Rich textarea replacement)

    2) Script URL (on DD):

    3) Describe problem:


    I'm playing around with this great WYSIWYG script for my textareas.
    I wanna make the links target to "_blank" instead of the current, default "_self".

    I simply can't find a place to ad the "_blank" line.

    Any ideas??

  2. #2
    Join Date
    Mar 2006
    Illinois, USA
    Thanked 690 Times in 678 Posts


    The script doesn't have an option for this. And I can't find where you would edit it in the code. You need to track down where the links are inserted and change the code. Do you need this enough that you will want to modify the script?
    And you will also need to add a new interface to the link edit window if you want to have individual control over the links. If not, you could hard-code that into the Javascript to always be _blank.

    Alternatively if you are storing this information somewhere (such as a database) you could use a serverside language to go through and change each link either when storing the text or when you load it into a page.

    You can also potentially edit the page on which you will display the HTML by setting all links to open in a new window (such as through Javascript, or maybe a meta tag that sets a default target-- not sure if that exists, though it does for a link's base path).
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts