我正在使用来自HtmlEditorExtender的AjaxToolKit组件,我遇到了一些麻烦。
我正在尝试将HtmlEditorExtender设置为ReadOnly,但我找不到实现它的方法。
将与HtmlEditorExtender关联的TextBox设置为ReadOnly = true或Enabled = false不起作用。
ReadOnly = true
Enabled = false
有什么想法吗?
发布于 2016-09-30 07:47:21
HtmlEditorExtender使用带有contenteditable='true'属性的div,所以这个问题可以重新表述为“如何使一个内容可编辑的div只读?”
contenteditable='true'
这方面有一些答案,比如here和here。
https://stackoverflow.com/questions/39778772
相似问题