laravel-u-editor icon indicating copy to clipboard operation
laravel-u-editor copied to clipboard

ie浏览器富文本上传提示下载

Open xiangyubomb opened this issue 6 years ago • 1 comments

image

xiangyubomb avatar Oct 18 '18 10:10 xiangyubomb

将src/Controller.php中的server方法返回值做一下判断是否是IE浏览器进行修改

把 return response()->json($result, 200, [], JSON_UNESCAPED_UNICODE); 改为 if (strpos($_SERVER['HTTP_USER_AGENT'],"Triden")) { //如果是IE 特殊处理header return response($result,200)->header('Content-Type', 'text/html;charset=utf-8'); } else{ return response()->json($result, 200, [], JSON_UNESCAPED_UNICODE); }

shenglin-php avatar Jan 22 '19 08:01 shenglin-php