+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Set target for document?

Set target for document?

4 posts, 0 answered
  1. Jeff Mah
    Jeff Mah avatar
    31 posts
    Registered:
    25 Feb 2005
    03 Dec 2008
    Link to this post
    Is it possible when, when using "Insert a document" to set it to open in a new window (target=_blank)?
  2. valio b
    valio b avatar
    33 posts
    Registered:
    24 Sep 2012
    04 Dec 2008
    Link to this post
    Hi Jeff,

    We deliberately removed the target="blank" attribute as it is not XHTML compliant.
    Please refer to the following KB article to learn how to put it back (the provided example is for
    Link Manager dialog; for the Document Manager dialog you need to modify ~/Sitefinity/Admin/ControlTemplates/Libraries/Dialogs/DocumentEditorDialog.ascx file): How to extend the custom RadEditor dialogs

    Also
    , you can always switch to HTML code view and add target="_blank" to the anchor tag of your document.

    Hope this helps.

    Kind regards,
    valio b
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    04 Dec 2008
    Link to this post
    whaaaa? when did that happen?

    if target=blank is no xhtml compliant how is one supposed to open links in a new browser?
  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    04 Dec 2008
    Link to this post
    Hello SelArom,

    You should insert a javascript in the links you want. I personally wonder why this option is removed from the XHTML definitions.

    All the best,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
4 posts, 0 answered