秀米 ueditor 远程抓图到本地 问题结合
readfile($imgUrl, false, $context);
$img = ob_get_contents();
ob_end_clean();
//preg_match("/[\/]([^\/]*)[\.]?[^\.\/]*$/", $imgUrl, $m); //原语句
preg_match("/\/[A-za-z0-9-]+.".$fileType."/", strtolower($imgUrl), $m); //修改过的语句
$this->oriName = $m ? ltrim($m[0],'/'):""; //修改过的语句
// $this->oriName = $m ? $m[1]:""; //原语句
$this->fileSize = strlen($img);
$this->fileType = $this->getFileExt();
$this->fullName = $this->getFullName();
$this->filePath = $this->getFilePath();
$this->fileName = $this->getFileName();
$dirname = dirname($this->filePath);
img: ['src', 'alt', 'title', 'width', 'height', 'id', '_src', '_url', 'loadingclass', 'class', 'style', 'data-latex','data-ratio','data-w','_width'],
section:['class', 'style'],