簡體   English   中英

禁用或使Kendo Editor只讀

[英]Disable or make the Kendo Editor Read-only

我在我的一個頁面中使用了Kendo UI編輯器。 以下是使用的語法。

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

我想在某些情況下禁用或使兩個編輯器都是只讀的,並使其在某些其他條件下可編輯。

以下是我到目前為止所遇到的類似要求的鏈接。 如何在asp.net mvc中禁用kendo編輯器 http://www.telerik.com/community/forums/aspnet-mvc/editor/making-the-editor-disabled-readonly.aspx

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

謝謝

對於劍道仍然有效的答案。 如果您要顯示內容,則不需要編輯器。

無論如何

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM