引入安装包,放在Public里面  

 

<tr>
<td class="label">商品描述</td>
<td>
<textarea id="goods_desc" name="goods_desc" cols="60" rows="4" ></textarea>
</td>
</tr>

<!-- 导入在线编辑器 -->
<link href="__PUBLIC__/umeditor1_2_2-utf8-php/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="__PUBLIC__/umeditor1_2_2-utf8-php/third-party/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/umeditor1_2_2-utf8-php/umeditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/umeditor1_2_2-utf8-php/umeditor.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/umeditor1_2_2-utf8-php/lang/ah-cn/zh-cn.js"></script>
<script>
UM.getEditor('goods_desc',{
initialFrameWidth:"100%",
initialFrameHeight:350
});
</script>