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

Missing context menu in editor

1 Answer 71 Views
This is a migrated thread and some comments may be shown as answers.
David Stretch
Top achievements
Rank 1
David Stretch asked on 27 May 2010, 04:03 PM

I have the editor configured in two environments slightly differently and in one of the two the right-click context menu doesn't appear, I just get a . near the mouse pointer.

Hopefully I'm missing something obvious and there's an easy solution, can you turn the menus off entirely in a single location or is it just a case of removing the <contextMenus> section of the tools.xml file?

Whilst there are subtle differences in the toolbar configurations between the environments, both seem to have the same <contextMenus> section.

My tools.xml is attached below:

    <module name="RadEditorDomInspector" /> 
  <tools name="row1">  
    <tool name="Print" /> 
    <tool name="AjaxSpellCheck" /> 
    <tool name="FindAndReplace" /> 
    <tool separator="true"/>  
    <tool name="Cut" shortcut="CTRL+X" /> 
    <tool name="Copy" shortcut="CTRL+C" /> 
    <tool name="Paste" shortcut="CTRL+V" /> 
    <tool name="PasteFromWord" /> 
    <tool name="PastePlainText" /> 
    <tool name="PasteAsHtml"  /> 
    <tool name="SelectAll"/>    
    <tool separator="true"/>  
    <tool name="Undo" shortcut="CTRL+Z" /> 
    <tool name="Redo" shortcut="CTRL+Y" /> 
    <tool name="StripAll"/>  
    <tool name="StripCss"/>  
    <tool name="StripFont"/>  
    <tool name="StripSpan"/>  
    <tool name="StripWord"/>  
<tools name="row2">  
    <tool name="MOSSLinkManager" shortcut="CTRL+K" /> 
    <tool name="Unlink" shortcut="CTRL+SHIFT+K" /> 
    <tool name="ImageManager" shortcut="CTRL+G" /> 
    <tool name="MOSSTemplateManager" /> 
    <tool separator="true"/>  
      <tool name="InsertBreakAtEnd"  /> 
      <tool name="InsertSymbol"  /> 
      <tool name="InsertHorizontalRule"  /> 
      <tool name="InsertDate"  /> 
      <tool separator="true"/>  
    <tool name="MOSSInsertTable" /> 
    <tool name="SetTableProperties" /> 
    <tool name="ToggleTableBorder" /> 
    <tool name="MOSSInsertTableElement">  
      <tool name="InsertRowAbove" /> 
      <tool name="InsertRowBelow" /> 
      <tool name="InsertColumnLeft" /> 
      <tool name="InsertColumnRight" /> 
      <tool name="DeleteRow" /> 
      <tool name="DeleteColumn" /> 
      <tool name="SplitCell" /> 
    <tool name="MOSSDeleteTableElement">  
      <tool name="DeleteRow" /> 
      <tool name="DeleteColumn" /> 
    <tool name="MergeColumns" /> 
      <tool separator="true"/>  
    <tool name="InsertOrderedList" /> 
    <tool name="InsertUnorderedList" /> 
    <tool name="Outdent" /> 
    <tool name="Indent" /> 
<tools name="row3">  
    <tool name="JustifyLeft" /> 
    <tool name="JustifyCenter" /> 
    <tool name="JustifyRight" /> 
      <tool separator="true"/>  
    <tool name="Bold" shortcut="CTRL+B" /> 
    <tool name="Italic" shortcut="CTRL+I" /> 
    <tool name="Underline" shortcut="CTRL+U" /> 
    <tool name="StrikeThrough"  /> 
    <tool name="Superscript"  /> 
    <tool name="Subscript"  /> 
      <tool separator="true"/>  
    <tool name="FormatBlock" /> 
    <contextMenu forElement="*">  
      <tool name="Cut"/>  
      <tool name="Copy"/>  
      <tool name="Paste"/>  
  <item name="Arial" /> 
 <color value="black" /> 
 <color value="#af005f" /> 
 <color value="#990066" /> 
 <color value="#666666" /> 
    <paragraph name="&lt;P>Normal&lt;/P>" value="&lt;P>" /> 
    <paragraph name="&lt;H2>Head&lt;/H2>" value="&lt;H2>" /> 
    <paragraph name="&lt;H3>Head 1&lt;/H3>" value="&lt;H3>" /> 
    <paragraph name="&lt;H4>Head 2&lt;/H4>" value="&lt;H4>" /> 
    <paragraph name="&lt;H5>Head 3&lt;/H5>" value="&lt;H5>" /> 
    <item name="/_wpresources/RadEditorSharePoint/" /> 
    <class name="Clear Class" value="" /> 

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 01 Jun 2010, 08:54 AM
Hi David,

I tested the problem with the provided ToolsFile.xml and was not able to reproduce it. The context menu worked as expected on our test server. In my test I  used the latest version of RadEditor for MOSS, which now is 5.7.2.

In order to help you further I will need some additional information. Could you provide me with a couple of screen shots where we can see the problem context menu?

Regarding how to disable the context menu review the following online help article
Since you are using RadEdiotr for MOSS, first you need to set the OnClientLoad property in the respective ConfigFile.xml or ListConfigFile.xml, which are located in the /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.x.x.0__1f131a624888eeed/Resources/ folder. Add the following line:
<property name="OnClientLoad">OnClientLoad</property>
Second you need to add the OnClientLoad javascript method in the page where RadEditor for MOSS is loaded. One good place for it is the MOSSEditorTools.js file, which is located in the previously mentioned folder.
function OnClientLoad(editor)
   editor.AttachEventHandler("oncontextmenu", function(e)
      if (e.stopPropagation) e.stopPropagation();
      return false;

Sincerely yours,
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Asked by
David Stretch
Top achievements
Rank 1
Answers by
Telerik team
Share this question