After switching to the Ueditor editor using V9, the image upload path shows a relative path, which synchronizes the path of the first picture of the content field to the Thumb field of the thumbnail. If the Thumb field is a relative path, the front end cannot be clipped, and the app or other app cannot be called.
Then modify.
I'm using 1.4.3 version
Locate the/php/uploader.class.php file under the editor directory.
Find the GetFileInfo () method and modify it to the following code
public function getfileinfo () {$dangqian _host = ' http://' $_server[' Http_host ']; return array ( "state" => $this->stateinfo, "url" => $dangqian _host.$ this->fullname, "title" => $this->filename, "original" => $this->oriname, " Type " => $this->filetype, "Size" => $this->filesize ); }
is to obtain the file information, the URL is added to the domain name + file path. This becomes the absolute path.
The Thumb function in the new PHPCMS has already supported scaling thumbnails. {Thumb ($r [thumb],300,0)} set either width or height to 0 as required.
Switch editors can refer to this tutorial: http://bbs.phpcms.cn/thread-882637-1-1.html
V9 Switch Ueditor after the image upload path problem changed to absolute path