首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

加了KindEditor后不能设置textArea readonly解决方法

2014-01-12 
加了KindEditor后不能设置textArea readonly在页面上引用了KindEditor后,设置TextArea为readonly不起作用

加了KindEditor后不能设置textArea readonly
在页面上引用了KindEditor后,设置TextArea为readonly不起作用

<script type="text/javascript">
KindEditor.ready(function (K) {
var editor1 = K.create('#JE00Warning_ProcessResult', {
cssPath: '@Url.Content("~/Scripts/kindeditor-4.1/plugins/code/prettify.css")',
uploadJson: '@Url.Content("~/Scripts/kindeditor-4.1/asp.net/upload_json.ashx")',
fileManagerJson: '@Url.Content("~/Scripts/kindeditor-4.1/asp.net/file_manager_json.ashx")',
allowFileManager: true,
width: "560px",
height: "200px",
 items: [
'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons', 'image', 'link']
});
prettyPrint();
});
</script>



@Html.TextAreaFor(x => x.JE00Warning.ProcessResult, new { Readonly = true })


求大神指导一二。。 KindEditor mvc JavaScript
[解决办法]
编辑器生成后已经把textarea隐藏了,你看到的不是textarea

热点排行