This is a migrated thread and some comments may be shown as answers.

How to set a default value for the attribute 'target' in the link manager.

1 Answer 96 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Bruce
Top achievements
Rank 2
Bruce asked on 14 Jul 2009, 05:25 PM
I need to set the 'target' attribute in the link manager to open in a new window. Is there any way to set a default value?

I have looked through the documentation and searched the forums but came up with nothing. 

Thanks

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 15 Jul 2009, 10:07 AM
Hi Bruce,

You can easily modify the functionality of the Link manager by registering the external RadEditor dialog files and opening the /EditorDialogs/LinkManager.ascx file. You can see how to do that in the following live example: Customize Built-in Dialogs.

After that set the third option of the linkTargetCombo dropdown to be selected by modifying the following line
this._linkTargetCombo.options[0].selected = true;
to
this._linkTargetCombo.options[2].selected = true;
, e.g.

    _cleanInputBoxes : function() 
    { 
        this._linkUrl.value = ""
        this._linkText.value = ""
        if (this._linkTargetCombo.options && this._linkTargetCombo.options.length>0) 
        { 
            this._linkTargetCombo.options[2].selected = true
        } 
        ... 

Save the file.

Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
Bruce
Top achievements
Rank 2
Answers by
Rumen
Telerik team
Share this question
or