标签 ueditor 下的文章



1、多域名调用Ueditor的配置:

默认状态下,会出现如(ueditor Protocols, domains, and ports must match.)的跨域访问错误。

修改ueditor/ueditor.config.js,将URL写成固定值ueditor的路径即可

1111111

2、上传文件路径配置

默认状态下,从编辑器上传的图片都是相对路径。

修改/ueditor/php/config.json,将配置文件中imageUrlPrefix参数全部设置域名前缀。

2222222