标签:
下载ueditor 放在public 目录下 Public/ueditor
加载 js文件
<SCRIPT type="text/javascript" src="__PUBLIC__/ueditor/editor_config.js"></SCRIPT> <SCRIPT type="text/javascript" src="__PUBLIC__/ueditor/editor_all.js"></SCRIPT>
<textarea name="content" id="myEditor"></textarea> <script type="text/javascript"> UE.getEditor(‘myEditor‘, { theme:"default", //皮肤 lang:"zh-cn", //语言 initialFrameWidth:800, //初始化编辑器宽度,默认800 initialFrameHeight:320// 初始化编辑器高度 }); </script>
注释:myEditor 为要加区域的id
标签:
原文地址:http://www.cnblogs.com/tianbo16/p/5751766.html