网站建设
建站服务【前言】如果你还不会整合百度编辑器,请先阅读帝国cms7.2整合百度编辑器(免安装替换版)
教程步骤:
一、找到编辑器下面的Uploader.class.php文件,并打开
二、找到如下代码片段:
public function getFileInfo() { return array( "state" => $this->stateInfo, "url" => $this->fullName, "title" => $this->fileName, "original" => $this->oriName, "type" => $this->fileType, "size" => $this->fileSize ); }
三、修改
"url" => $this->fullName,
为
"url" => 'http://'.$_SERVER['HTTP_HOST'].$this->fullName,
四、保存你会发现电脑手机端图片直接引用电脑端的图片了。