81,090
社区成员
发帖
与我相关
我的任务
分享
<script type="text/javascript" src="<%=path %>/js/ueditor1.4.3.3/ueditor.config.js"></script>
<script type="text/javascript" src="<%=path %>/js/ueditor1.4.3.3/ueditor.all.min.js"></script>
<script id="editor" type="text/plain" style="width:1024px;height:500px;">${bean.content}</script>
var ue ;
$(function(){
ue = UE.getEditor('editor');
//var value = $("#content").val();
//ue.setContent(value, false);
//UE.getEditor('editor').addListener("ready", function () {
// UE.getEditor('editor').setContent($("#content").val());
//});
});
<input type="hidden" id="content" name="bean.content" value="${bean.content}" />
去掉就好了:
<input type="hidden" id="content" name="bean.content" value="" />
其实不要也无所谓,只是原来使用的是ueditor1.2的版本,这么写的,也就没注意,结果,耽误了好多时间...谢谢帮忙的人,3Q