git-svn-id: http://xe-core.googlecode.com/svn/trunk@652 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-03-26 06:14:02 +00:00
parent 19f925f0e0
commit d703b6d15a
6 changed files with 103 additions and 25 deletions

View file

@ -739,12 +739,9 @@
$editor_component = $xml_doc->attrs->editor_component;
if(!$editor_component) return $matches[0];
// editor class 객체 생성하여 component 객체 받음
$oEditor = &getClass('editor');
if(!is_object($oEditor)) return $matches[0];
// component::transHTML() 을 이용하여 변환된 코드를 받음
$oComponent = &$oEditor->getComponentObject($editor_component, 0);
$oEditorModel = &getModel('editor');
$oComponent = &$oEditorModel->getComponentObject($editor_component, 0);
if(!is_object($oComponent)||!method_exists($oComponent, 'transHTML')) return $matches[0];
return $oComponent->transHTML($xml_doc);