1
我嘗試使用彈出窗口編輯項目jtable的ckeditor,但不出現。 和鉻瀏覽器不顯示錯誤,當我調試它。MVC.net 4如何在jtable彈出窗口中使用帶有textarea的ckeditor
這是我的代碼!我的textarea的名字是 「莫塔」
<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>