Hi,
There isn't any easy way to do that in the current version. However you can easily achieve similar result by using a Literal to display the content. For example, the following code would let user to see the editor and edit some text:
Code: C#
Editor1.Visible = true;
Editor1.Html = "some text";
The following code would let user to view the text only (thus not be able to edit):
Code: C#
Editor1.Visible = false;
Literal1.Visible = true;
Literal1.Text = "some text";
Here Literal1 is a standard ASP.NET Literal control. You can also put it inside a DIV so that you can put a border/size/scroll bars on it:
Code: HTML/ASPX
<div
style="border: solid 1px gray; width:200px; height:100px; overflow: auto;">
<asp:Literal runat="server" id="Literal1"></asp:Literal>
</div>
If you wish to disable the Editor directly, you will need to switch the Editor into preview mode. In the current version that can only be done by user clicking the "Preview" button. It can not be done through code. So it is not a valid option. In the future we may allow switching mode through code.
Hope this helps.
Thanks