禁用或使Kendo编辑器为只读 [英] Disable or make the Kendo Editor Read-only

查看:433
本文介绍了禁用或使Kendo编辑器为只读的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在其中一个网页中使用 Kendo UI 编辑器。
下面是使用的语法。

  $(#editorKendo1)。kendoEditor(); 
$(#editorKendo2)。kendoEditor();

我想在某些情况下禁用或使这两个编辑器为只读,并使其可编辑在其他条件下。

以下是到目前为止我所得到的类似要求的链接。
如何在asp中禁用kendo编辑器.net mvc
http://www.telerik.com/community/forums/aspnet-mvc/editor/making-the-editor-disabled-readonly.aspx



我正在使用 Kendo UI Web,版本 - 2012.3.1114
任何人都可以帮助我。



谢谢

解决方案

答案仍然对Kendo有效。你不需要编辑器,如果你要显示的内容。



无论如何

  $($('#editorName')。data()。kendoEditor.body).attr('contenteditable',false)


I am using Kendo UI Editors in one of my pages. Below is the syntax used.

$("#editorKendo1").kendoEditor();
$("#editorKendo2").kendoEditor();

I want to either disable or make both of the editors read-only on some condition and make it editable on some other condition.

Below are the links to the similar requirement i have got so far. How can i disable kendo editor in asp.net mvc http://www.telerik.com/community/forums/aspnet-mvc/editor/making-the-editor-disabled-readonly.aspx

I am using Kendo UI Web, Version - 2012.3.1114 Can anyone help me with this.

Thanks

解决方案

Answers there are still valid for Kendo. You do not need the editor if you are going to just show the content.

Anyway

$($('#editorName').data().kendoEditor.body).attr('contenteditable',false)

这篇关于禁用或使Kendo编辑器为只读的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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