UM编辑的使用 文件下载里有

引入安装包,放在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>

世上无难事,只怕有心人......
原文地址:https://www.cnblogs.com/gooderic/p/5678571.html