首先在页面引入
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/btn_config.js"></script>
在table里添加一个textarea带id和name
<ul class="forminfo" style="display:none;">
<li><label>商品描述</label><textarea style="width:400px;height:200px;" id="goods_desc" name="goods_desc" rows="6" cols="60" class="dfinput" /></textarea><i>*请填写商品描述</i></li>
</ul>
然后写一段js
<script>
UE.getEditor('goods_desc',{
'initialFrameWidth':"1000",
'initialFrameHeight':"500",
});
</script>
修改编辑器图片上传默认路径