I have a mode in application that uses radeditor where a certain role, call it “user” has no ability to modify content other than through 3 custom “note annotation” buttons on custom tool bar and in the context menu (add note, delete note, modify note). I figure there are two ways of doing this with radeditor;
1. Use Design mode and when the ‘user role’ is detected go into design mode remove all the tool bars except the one that has the 3 annotation buttons remove all context menus except the 3 annotation buttons. I can disable content by catching all keystokes (that I want to catch) in a client side key event handler. (This mode is the one I’m currently coding to at the moment)
Problems with this method:
1. I have some bordered colored span tags that the “user role” can grab with the mouse and move around, which I would like to disable.
2. Some content is in tables and the “user role” can size the borders, which I would like to disable.
3. All tables even with invisible borders can have their border sized modified by the “user role”
2. Use Preview mode. I can enable the three button based on this support article http://www.telerik.com/support/kb/aspnet-ajax/editor/enabling-print-button-in-preview-mode.aspx . Here there is not the problems listed in #1 but there are other problems introduced;
Problems with this method (so far)
1. Some html document elements don’t work, like getElementById which is essential for inserting annotations into document
2. It does not appear that the editor content can be modified by client side programming.
3. Cursor selection is disabled
If I could overcome the problems for either 1 or 2 I think I could fulfill my “user role” requirement with limited user editing via client/server program control
Thank you for any thoughts on the issue.