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

Changing Tooltip and Disabling Righ-Click

3 Answers 129 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Alan
Top achievements
Rank 1
Alan asked on 29 Jul 2008, 12:05 PM
When using the RadEditor I have customized the toolbar, removing and rearranging some of the tools. The tooltip for the spellchecker says, "AJAX Spellchecker."  In what file could I change the tooltips for the tools on the toolbar. I tried changing it in the toolsfile.xml, but this doesn't accept 'tooltip' as an attribute for 'tool'.

Also, when I'm in edit mode of the RadEditor tool if I right-click a small window pops up with the options to "Paste, Paste from Word, Paste Plain Text, Paste as Html" how do disable this window from popping up.  I have it set for the users to only be allowed to "PasteFromWordNoFontsNoSizes" and I don't want these other options to be available.

Please let me know.
Thanks

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 30 Jul 2008, 08:11 AM
Hi Alan,

Please, review the following help article which will help you to localize the control: Using Global Resource Files. To localize the tooltips of the toolbar buttons open the \App_GlobalResources\RadEditor.Tools.resx file and change the strings in the value column.


You can see how to hide existing buttons in the following article: Removing Toolbar Buttons.
You can predefine the content menu using the solution provided here: Context Menus.

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Alan
Top achievements
Rank 1
answered on 04 Aug 2008, 07:13 PM
The solution to the problem given was understandable however, it did not work.  I changed the value of the AjaxSpellCheck tool in the "RadEditor.Tools.resx" page and when this didn't work I changed it in my copy, "RadEditor.Tools.en-US.resx" which also did not work, that I added to my solution in Visual Studio 2005 but the value remained the same.  Do I need to reference this file somewhere in my code and if so, where?

Also, the information on the context menus where a little helpful but they confused me and didn't solve my problem. The menu I'm trying to disable is the same window that pops up in this textbox while I'm in edit mode typing my thread if I just right-click. Is there a way to disable that menu from popping up when the user right-clicks in the textarea on the RadEditor tool?
0
Rumen
Telerik team
answered on 05 Aug 2008, 08:08 AM
Hello Alan,

I tried to reproduce the reported localization problem, but unfortunately to no avail. You can see my test in the attached video and test the included project. Am I missing something? If you are unable to localize the tooltip of the spellchecker, just open a support ticket and send me a sample working project that demonstrates the issue. I will examine it and try to provide a solution.

In regards to the context menus I was able to disable them by setting   <telerik:EditorContextMenu Enabled="false" TagName="*"></telerik:EditorContextMenu>, e.g.

<telerik:RadEditor ID="RadEditor1" runat="server">
<ContextMenus>
    <telerik:EditorContextMenu Enabled="false" TagName="*"></telerik:EditorContextMenu>
</ContextMenus>
</telerik:RadEditor>

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Alan
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Alan
Top achievements
Rank 1
Share this question
or