cheditor 에서 이미지 사이즈 수정한대로 노출하기

This commit is contained in:
gnuboard
2013-12-12 13:47:37 +09:00
parent 1c67cf8ef3
commit e1fb2464c7
2 changed files with 29 additions and 13 deletions

View File

@ -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;