Home  >  Article  >  Backend Development  >  Umeditor图片路径怎么改成相对路径?

Umeditor图片路径怎么改成相对路径?

WBOY
WBOYOriginal
2016-06-06 20:21:391732browse

用umeditor的时候发现上传的图片提交过去之后发现图片都写的是绝对路径,怎么能改成相对路径?

回复内容:

用umeditor的时候发现上传的图片提交过去之后发现图片都写的是绝对路径,怎么能改成相对路径?

UMEditor(Ueditor mini)修改图片上传路径
imageUp.ashx

string pathbase = "/UpLoad/images/"; //保存文件夹在网站根目录下

dialogs/image/image.js

//修改为

var $img = $("Umeditor图片路径怎么改成相对路径?"),//去掉editor.options.imagePath,要不然上传后图片列表图片路径错误

umeditor.js

//8038行
//修改为

picLink = link;//去掉me.options.imagePath,拖拽图片进编辑框,路径错误

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn