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

Default field in Hyperlink Manager

1 Answer 68 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 2
Peter asked on 06 Jun 2008, 06:30 PM
Is there any way to change the default field (the field that has focus) in the Hyperlink Manager?  I'd like to be able to have the URL field have focus and automatically select the contents so that users can simply type/paste a URL and press OK instead of having to click the URL field and select the contents before typing/pasting.

Cheers -- Peter

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 10 Jun 2008, 12:56 PM
Hi Peter,

Please review bellow how to achieve the desired behavior.
  1. Copy the editor's dialogs' folder within your application - you can get it from the editor's installation zip or from the hotfix zip within your Client.net account.
     
  2. Set the editor's ExternalDialogsPath property to point to the dialogs folder e.g.ExternalDialogsPath="~/EditorDialogs"
     
  3. Open the EditorDialogs/LinkManager.ascx file and on the bottom of the clientInit: function() add the desired code:

    clientInit : function(clientParameters)
    {
       this._clientParameters = clientParameters;
       if(this._clientParameters.selectedTabIndex && this._clientParameters.selectedTabIndex >= 0)
       { 
          this._tab.selectTab(this._clientParameters.selectedTabIndex); 
       } 
       this._loadLinkProperties(); 
       this._linkTypeChangeHandler(); 
       // here - set focus to the LinkURL textbox
    },
I hope this helps.

Sincerely,
George
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
Peter
Top achievements
Rank 2
Answers by
George
Telerik team
Share this question
or