我尝试将ckeditor与jtable的弹出编辑项一起使用,但它没有出现。 和Chrome浏览器在调试时没有显示错误。
这是我的代码!!我的textarea名称是" Mota"
<script src="@Url.Content("~/Scripts/jtablescripts/jquery-1.9.0.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jtablescripts/jquery-ui-1.9.2.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/ckeditor/ckeditor.js")"></script>
<script src="@Url.Content("~/Scripts/ckfinder/ckfinder.js")"></script>
<script type="text/javascript">
...
fields: {
MoTa: {
title: 'MoTa',
type: 'textarea',
list: false,
sorting: false,
formCreated: function (event, data) {
//$('textarea#Edit-MoTa').ckeditor();
CKEDITOR.replace('MoTa', { toolbar: '1', htmlEncodeOutput: true });
},
formClosed: function (event, data) {
var editor = jQuery("textarea#Edit-MoTa").ckeditorGet();
editor.destroy();
}
}
...
</script>
<script>CKEDITOR.replace('GhiChu', { toolbar: '1', htmlEncodeOutput: true });</script>
&#13;