如果你对该文章中的内容有疑问/不解,可以点击此处链接提问
要注明问题和此文章链接地址 点击此处跳转
将官方下载的数据包放入static 在需要的地方引入
<script id="container" name="content" type="text/plain" ></script>
{js href="__STATIC__/ueditor/ueditor.config.js" /}
{js href="__STATIC__/ueditor/ueditor.all.js" /}
<script type="text/javascript">
var ue = UE.getEditor('container',{
// initialFrameWidth :800,//设置编辑器宽度
initialFrameHeight:350,//设置编辑器高度
scaleEnabled:false//设置不自动调整高度
//scaleEnabled {Boolean} [默认值:false]//是否可以拉伸长高,(设置true开启时,自动长高失效)
});
</script>
图片路径的设置
ueditor图片的存放位置
\public\static\ueditor\php\config.json 里面的注释很清楚了,改成自己保存的路径即可
王明昌博客
