问题描述
我在其中一个网页中使用 Kendo UI 编辑器。
下面是使用的语法。
$(#editorKendo1)。kendoEditor();
$(#editorKendo2)。kendoEditor();
我想在某些情况下禁用或使这两个编辑器为只读,并使其可编辑在其他条件下。
以下是到目前为止我所得到的类似要求的链接。
我正在使用 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 mvchttp://www.telerik.com/community/forums/aspnet-mvc/editor/making-the-editor-disabled-readonly.aspx
I am using Kendo UI Web, Version - 2012.3.1114Can 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编辑器为只读的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!