Hiding Tools

4 posts, 0 answers
  1. Falk
    Falk avatar
    30 posts
    Member since:
    Mar 2008

    Posted 10 Apr 2008 Link to this post

    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
  2. George
    Admin
    George avatar
    859 posts

    Posted 11 Apr 2008 Link to this post

    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

  3. Falk
    Falk avatar
    30 posts
    Member since:
    Mar 2008

    Posted 18 Apr 2008 Link to this post

    Hi,

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

    Thanks for help
  4. George
    Admin
    George avatar
    859 posts

    Posted 18 Apr 2008 Link to this post

    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
Back to Top