【问题标题】:Disable or make the Kendo Editor Read-only禁用或将 Kendo 编辑器设为只读
【发布时间】:2013-06-16 23:01:33
【问题描述】:

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

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

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

以下是到目前为止我得到的类似要求的链接。 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

我正在使用 Kendo UI Web,版本 - 2012.3.1114 谁能帮我解决这个问题。

谢谢

【问题讨论】:

标签: javascript jquery html css kendo-ui


【解决方案1】:

那里的答案对剑道仍然有效。如果只显示内容,则不需要编辑器。

不管怎样

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

【讨论】:

猜你喜欢
  • 2016-07-15
  • 1970-01-01
  • 2019-07-18
  • 2013-08-09
  • 1970-01-01
  • 2010-09-24
  • 1970-01-01
  • 2013-09-20
  • 1970-01-01
相关资源
最近更新 更多