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

Hiding Tools

3 Answers 95 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Falk
Top achievements
Rank 1
Falk asked on 10 Apr 2008, 07:55 AM
Hi,

I'm using RadEditor Fullversion for Moss. I would like to hide the cut, copy, paste and the imagemap button but I want them to be available over shortcuts. Therefor I tried to configure the Toolsfile and ListToolsFile. I added the attribute showicon="false" to the tool-tag but it doesn't work then I created a new toolbar and tried to hide it with the attribute visible="false" this doesn't work either. After evrey configuration I made a iisreset.

Thanks for help and best regards

Falk

3 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 11 Apr 2008, 03:11 PM
Hi Falk,

The Cut, Copy and Paste tools are using the standard browser's commands and you can directly remove them from the toolbar -remove the following tools from the ToolsFile.xml/ListToolsFile.xml (this depends on your scenario):
<tool name="Cut" shortcut="CTRL+X" /> 
<tool name="Copy" shortcut="CTRL+C" /> 
<tool name="Paste" shortcut="CTRL+V" /> 

The keyboard shortcuts and the context menus will still be available.

As to the Image Map, you can hide it using the following JavaScript code called on the editor's OnClientLoad event:
var oTool = editor.GetToolByName("ToolName"); //get a reference to the wanted tool button  
var elem = oTool.Element;  
elem.style.display = "none"//hide the button  
 

Note that, the showicon and visible properties are no implemented yet - unfortunately I cannot give you an ETA when they will be implemented.

I hope this helps.

Best regards,
George
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Falk
Top achievements
Rank 1
answered on 18 Apr 2008, 10:00 AM
Hi,

I do not understand where I have to post the javascript. Which file?

Thanks for help
0
George
Telerik team
answered on 18 Apr 2008, 11:23 AM
Hi Falk,

Open SharePoint Designer and navigate to the desired page where the editor is.
Next, set the wanted script like this:

<script type="text/javascript">
   function OnClinetLoad (editor)
   {
       var oTool = editor.GetToolByName("ToolName"); //get a reference to the wanted tool button 
       var elem = oTool.Element; 
       elem.style.display = "none"; //hide the button 
   }
</script>
<radE:RadHtmlField runat="server" OnClientLoad="OnClinetLoad ".................

Finally, Save/Check-In the file so the changes are applied to your site.

Kind regards,
George
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
WebParts for SharePoint
Asked by
Falk
Top achievements
Rank 1
Answers by
George
Telerik team
Falk
Top achievements
Rank 1
Share this question
or