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

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

问题描述

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

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.

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

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

我使用的是 Kendo UI Web,版本 - 2012.3.1114谁能帮我解决这个问题.

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

谢谢

推荐答案

那里的答案对 Kendo 仍然有效.如果您只想显示内容,则不需要编辑器.

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

无论如何

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

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

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