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

WBOY
Release: 2016-06-06 20:21:39
Original
1731 people have browsed it

用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,拖拽图片进编辑框,路径错误

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!