日期:2014-05-17  浏览次数:20372 次

加了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