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

How to disable right-click on links?

2 Answers 110 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Covertix
Top achievements
Rank 1
Covertix asked on 13 Feb 2013, 01:20 PM
Hi,

I am using RadEditor with the InsertLink dialog, which opens a custom dialog.
when I select the link and right-click on it, I get a context menu and when I choose set link properties, I get an exception regarding the dialogs handler which is not registered in my web.config. I tried to add it, but I still get the exception.

Finally, I decided to disable the right-click on link items.
I tried your example:
                                   
    <telerik:EditorContextMenu TagName="A" Enabled="false">
      
<telerik:EditorTool Name="SetLinkProperties" />
      <
telerik:EditorTool Name="Unlink" />
    </
telerik:EditorContextMenu>

but I get an exception regarding spell-check:

'..\App_Data\RadSpell\en-US.tdf' is missing. The spellchecking functionality of RadEditor requires a dictionary file named 'en-US.tdf' in the '..\App_Data\RadSpell\' folder. Please, ensure that all needed dictionary files from the original RadEditor distribution are present. See the help for more details Controls > RadEditor > Spellchecker

How can I cancel the option to right-click on a link? Why do I get spellchecker error?
or how can I show my dialog on "set link properties"?

do you have any idea?

Thanks for your help.

2 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 15 Feb 2013, 04:46 PM
Hi,

The link dialogs of RadEditor has nothing to do with the spellchecker and you are the first to report such a problem. If you would like you can open a support ticket and send a simple working project which demonstrates the problem. You can also try to upgrade to the latest official Q3 2012 SP2 build and see whether the problem still persists.

I also tested the

<telerik:RadEditor runat="server" ID="RadEditor1">
    <Content>
        Sample Content test <a href="http://www.telerik.com">Telerik</a> test
    </Content>
    <ContextMenus>
        <telerik:EditorContextMenu TagName="A" Enabled="false" />
    </ContextMenus>
</telerik:RadEditor>


and verified that the Enabled="false" attribute disables the context menu for A tags. I have attached my test project.

Greetings,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Covertix
Top achievements
Rank 1
answered on 19 Feb 2013, 10:55 AM
I just added RadSpell folder to my App_Data and it works now.
Tags
Editor
Asked by
Covertix
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Covertix
Top achievements
Rank 1
Share this question
or