layUI富文本编辑器组件

1、组件自带的图片上传,自定义请求头问题;

layUI版本2.X

/** layui-v2.5.5 MIT License By https://www.layui.com */

需要自己添加参数,否则自定义请求头无效

layUI富文本编辑器组件

2、富文本编辑器数据回显、

定义layedit为全局变量,然后调用setContent();

/**
* 设置编辑器内容
* @param {[type]} index 编辑器索引
* @param {[type]} content 要设置的内容
* @param {[type]} flag 是否追加模式
*/
layedit.setContent(index, content, flag);
flag是true,是追加模式,
flag是false,赋值模式