我如何设置FCKEditor的是只读? [英] How do I set the FCKEditor to be readonly?

查看:158
本文介绍了我如何设置FCKEditor的是只读?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用我的WebForms应用FCKEditor的ASP.NET控件2.65。我怎样才能将其设置为只读($ P从服务器端pferably $)?

我没有看到Enabled或只读属性。

我缺少的东西真的很简单吗?


解决方案

  1. 裹在自己控制的控制。

  2. 在你的控制发布一个Enabled属性。

  3. 发表一个Value属性。管理状态这两个属性自己。

  4. 如果在渲染时启用= true,则委托给底层FCKEditor的控制。

  5. 否则,拿这个值只是渲染。

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?

解决方案

  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.

这篇关于我如何设置FCKEditor的是只读?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆