[英]Is there any way to make some words (only some words not whole editor) in Rad editor for Ajax read only?
我在我的项目中使用Telerik Rad Editor for Ajax,我想使某些字段/单词为只读。 我尝试了几件事,并且它适用于整个编辑器。这意味着整个编辑器变为只读。 我只想要一些文字和其余的编辑器,因为它是为用户编辑的。 可能吗 ? 要设置哪个属性?
提前致谢。
为了在RadEditor中定义可编辑区域和不可编辑区域,应在编辑器内容区域中放置几个DIV或SPAN元素容器。 之后,将unselectable =“ on”属性设置为其标签,以禁止选择这些元素。 您还应该将contentEditable属性设置为“ false”,以将这些元素置于不可编辑的模式。
示例:在RadEditor中添加可编辑和不可编辑区域。
<div style="border: red 1px solid;" contenteditable="false" unselectable="on">
Non Editable AREA
<div style="border: green 1px solid;" contenteditable="true" unselectable="off">
<!--Content name="info" -->
Editable REGION...
<!--/Content -->
</div>
Non Editable AREA
</div>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.