Hi,
I'm trying to implement a custom table editor and as part of this i would like the tables content not to be editable in the editor.
I would also like the content of the editor to have a doctype.
Below is a small code sample, the problem I am having is that is is still possible to put the cursor inside the table and edit the content.
Any help would be greatly appreciated.
thanks
<telerik:RadScriptManager ID="ScriptManager1" runat="server" /> |
<telerik:RadEditor runat="server" ID="RadEditor1" SkinID="MinimalSetOfTools" Height="400px"> |
<ContextMenus> |
<telerik:EditorContextMenu TagName="TABLE"> |
<telerik:EditorTool Name="EditTable" Text="Edit" /> |
</telerik:EditorContextMenu> |
<telerik:EditorContextMenu TagName="TH"> |
<telerik:EditorTool Name="EditTable" Text="Edit" /> |
</telerik:EditorContextMenu> |
<telerik:EditorContextMenu TagName="TR"> |
<telerik:EditorTool Name="EditTable" Text="Edit" /> |
</telerik:EditorContextMenu> |
<telerik:EditorContextMenu TagName="TD"> |
<telerik:EditorTool Name="EditTable" Text="Edit" /> |
</telerik:EditorContextMenu> |
</ContextMenus> |
<Content> |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
<html xmlns="http://www.w3.org/1999/xhtml" > |
<body> |
Right-click on image to see custom menu |
<img style="marign-left: 6px" width="179px" height="28px" src="../../Img/productLogoLight.gif" /><br/><br/> |
<p>Right-click here to see the custom Paragraph menu.<br/></p><br/> |
Right-click on the link to see the default link menu disabled: <a href="/">www.telerik.com</a> |
<table> |
<tr> |
<td><div contentEditable="false" unselectable="on">table content</div></td> |
</tr> |
</table> |
</body> |
</html> |
</Content> |
</telerik:RadEditor> |
[EDIT: the browser I'm using is IE8]