views:

462

answers:

2

I am using FCKEditor ASP.NET control 2.65 in my WebForms application. How can I set it to be readonly (preferably from the serverside)?

I am not seeing either Enabled or Readonly properties.

Am I missing something really simple?

A: 

Here is I think the answer for your problem

Greco
Uh, that's not a read only FCKEditor as I was able to edit the rich text easily.
Glenn
+1  A: 
  1. Wrap the control in your own control.
  2. Publish an Enabled property on your control.
  3. Publish a Value property. Manage the state for both of these properties yourself.
  4. If Enabled = true at the time of render, then delegate to the underlying FCKEditor control.
  5. Otherwise, take the Value and simply render it.
Glenn