cheditor 에서 이미지 사이즈 수정한대로 노출하기
This commit is contained in:
1 parent
1c67cf8ef3
commit
e1fb2464c7
2 files changed
+29
-13
No files matched your search
+2
-1
@@ -2006,7 +2006,8 @@ function get_editor_image($contents)
|
||||
return false;
|
||||
|
||||
// $contents 중 img 태그 추출
|
||||
$pattern = "/<img[^>]*src=[\'\"]?([^>\'\"]+[^>\'\"]+)[\'\"]?[^>]*>/";
|
||||
//$pattern = "/<img[^>]*src=[\'\"]?([^>\'\"]+[^>\'\"]+)[\'\"]?[^>]*>/";
|
||||
$pattern = "/<img([^>]*)>/iS";
|
||||
preg_match_all($pattern, $contents, $matchs);
|
||||
|
||||
return $matchs;
|
||||
|
||||
Reference in new issue
Block a user