<t:ckeditor是jeecg里面的标签,要使用必须<t:formvalid里面使用
但是这次是要写独立的页面,跟之前的不一样,所以标签里面的内容获取不到,查看框架源代码
</textarea><script type="text/javascript">var ckeditor_goodsDetails=CKEDITOR.replace("goodsDetails_text",{filebrowserBrowseUrl:‘plug-in/ckfinder/ckfinder.html‘,filebrowserImageBrowseUrl:‘plug-in/ckfinder/ckfinder.html?type=Images‘,filebrowserFlashBrowseUrl:‘plug-in/ckfinder/ckfinder.html?type=Flash‘,filebrowserUploadUrl:‘plug-in/ckfinder/core/connector/java/connector.java?command=QuickUpload&type=Files‘,filebrowserImageUploadUrl:‘plug-in/ckfinder/core/connector/java/connector.java?command=QuickUpload&type=Images‘,filebrowserFlashUploadUrl:‘plug-in/ckfinder/core/connector/java/connector.java?command=QuickUpload&type=Flash‘,width:800});CKFinder.SetupCKEditor(ckeditor_goodsDetails);</script></td>
</tr>
这步骤已经有了,接下来只需要做一步操作即可。
//更新字段内容
for (instance in CKEDITOR.instances){
CKEDITOR.instances[instance].updateElement();
}
$.ajax({
cache: true,
dataType : ‘json‘,
type: "POST",
url:"goodsController.do?save",
data:$(‘#thePictureForm‘).serialize(),// 你的formid
async: false,
error: function(request) {
alert(data.message);
window.location.href="goodsController.do?list";
},
success: function(data) {
alert(data.message);
window.location.href="goodsController.do?list";
}
});