can someone post up a sample of what the contextMenus look like in the toolsfile? This http://www.telerik.com/help/aspnet-ajax/usintthetoolsfile.html is not very telling on how exactly to embed contextmenus. I have a requirement to only ever allow my users to pastePlainText. My toolsfile looks like this. The default set as well linked here http://www.telerik.com/support/kb/aspnet-ajax/editor/default-toolsfile-xml-file.aspx are also lacking any reference to contextMenus.
My context menus however are getting overwritten with the standards ones
<telerik:Radeditor toolsfile="Tools.xml" runat="server" id="Editor" >
| <?xml version="1.0" encoding="utf-8" ?> |
| <root> |
| - <modules> |
| <module name="RadEditorStatistics" dockingZone="Bottom" enabled="true" visible="true" /> |
| <module name="RadEditorDomInspector" dockingZone="Module" enabled="false" visible="false" /> |
| <module name="RadEditorNodeInspector" dockingZone="Module" enabled="false" visible="false" /> |
| <module name="RadEditorHtmlInspector" dockingZone="Module" enabled="false" visible="false" /> |
| </modules> |
| <tools> |
| <tool name="FindAndReplace" /> |
| <tool name="Undo" /> |
| <tool name="Redo" /> |
| <tool name="Cut" /> |
| <tool name="Copy" /> |
| <tool name="Paste" shortcut="CTRL+!"/> |
| <tool name="InsertOrderedList" /> |
| <tool name="InsertUnorderedList" /> |
| <tool name="FormatStripper" /> |
| <tool name="PasteFromWordNoFontsNoSizes" /> |
| <!-- <tool name="Italic" /> |
| <tool name="Underline" /> |
| <tool name="ForeColor" /> |
| <tool name="BackColor"/> |
| <tool separator="true"/> |
| <tool name="FontName"/> |
| <tool name="RealFontSize"/>--> |
| <tool separator="true"/> |
| <tool separator="true"/> |
| <tool name="FormatBlock" /> |
| <tool name="Bold" /> |
| </tools> |
| <paragraphs> |
| <paragraph name="Clear formatting" value="<body>" /> |
| <!-- <paragraph name="<H1>Heading 1</H1>" value="<H1>" /> |
| <paragraph name="<H2>Heading 2</H2>" value="<H2>" />--> |
| <paragraph name="<H3>Heading 3</H3>" value="<H3>" /> |
| </paragraphs> |
| <contextMenus> |
| <contextMenu forElement="IMG" enabled="true"> |
| <tool name="Paste" /> |
| <tool name="pastePlainText" /> |
| </contextMenu> |
| </contextMenus> |
| </root> |
<telerik:Radeditor toolsfile="Tools.xml" runat="server" id="Editor" >