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

How to add hyperlink control?

3 Answers 196 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Rolf Winter
Top achievements
Rank 1
Rolf Winter asked on 02 Jun 2009, 12:25 PM
How to add a hyperlink control to the dropdownlist of form, checkbox, textbox ....
and the dialog for the hyperlink properties.
Especially how to trigger the selection window of images for the imageurl property.

Background: I want to insert a hyperlink with an image to the text. Maybe someone
here has another solution.

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 05 Jun 2009, 06:49 AM
Hi Rolf,

Could you please explain your scenario with detailed step-by-step instructions?

If you would like to wrap the inserted image via the Image Manager in a link tag then you can use the OnClientPasteHtml event property of RadEditor to do this. The following live example will show you how to attach to and use this event: OnClientPasteHtml event.

Best 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.
0
Rolf Winter
Top achievements
Rank 1
answered on 08 Jun 2009, 12:08 PM
Meanwhile i understand the notions of RADEditor. So i can specify my question:

How can I extend the list of the InsertFormElement tool with an imagebutton?
0
Rumen
Telerik team
answered on 11 Jun 2009, 07:31 AM
Hello Rolf,

You can see how to create or modify the existing toolstrips of RadEditor in this live example: Custom ToolStrips. Here is an example how to add the Imagebutton item in the ToolStrip, e.g.

<telerik:radeditor runat="server" ID="RadEditor1">  
    <Tools>
        <telerik:EditorToolGroup>               
            <telerik:EditorToolStrip Name="InsertFormElement" PopupHeight="150px">
                <telerik:EditorTool Name="Imagebutton" />
                <telerik:EditorTool Name="InsertFormForm" />
                <telerik:EditorTool Name="InsertFormButton" />
                <telerik:EditorTool Name="InsertFormCheckbox" />
                <telerik:EditorTool Name="InsertFormHidden" />
                <telerik:EditorTool Name="InsertFormPassword" />
                <telerik:EditorTool Name="InsertFormRadio" />
                <telerik:EditorTool Name="InsertFormReset" />
                <telerik:EditorTool Name="InsertFormSelect" />
                <telerik:EditorTool Name="InsertFormSubmit" />
                <telerik:EditorTool Name="InsertFormTextarea" />
                <telerik:EditorTool Name="InsertFormText" />
            </telerik:EditorToolStrip>
        </telerik:EditorToolGroup>
    </Tools>
</telerik:radeditor>

After that you should implement you own ImageButton custom command using the instructions provided in the following live example: Custom Tools.


All the best,
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
Rolf Winter
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Rolf Winter
Top achievements
Rank 1
Share this question
or