editor component 내용 변경시 space 가 있는 경우 발생하는 문제 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6308 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2009-05-08 06:25:01 +00:00
parent 784b0e09c1
commit 62c5a9a6aa

View file

@ -189,7 +189,7 @@
**/
function transEditorComponent($matches) {
$script = sprintf(' %s editor_component=%s', $matches[1], $matches[2]);
$script = preg_replace_callback('/([^=^"^ ]*)=([^ ^>]*) /i', fixQuotation, $script);
$script = preg_replace_callback('/([^=^"^ ]*)=([^ ^>]*)/i', fixQuotation, $script);
preg_match_all('/([a-z0-9\-\_]+)\=\"([^\"]+)\"/is', $script, $m);
for($i=0,$c=count($m[0]);$i<$c;$i++) {
$xml_obj->attrs->{$m[1][$i]} = $m[2][$i];