mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1618 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
350f9c0b48
commit
82507fd811
2 changed files with 19 additions and 13 deletions
|
|
@ -800,6 +800,7 @@
|
||||||
$buff = $matches[0];
|
$buff = $matches[0];
|
||||||
$buff = preg_replace('/([^=^"^ ]*)=([^"])([^=^ ]*)/i', '$1="$2$3"', $buff);
|
$buff = preg_replace('/([^=^"^ ]*)=([^"])([^=^ ]*)/i', '$1="$2$3"', $buff);
|
||||||
$buff = str_replace("&","&",$buff);
|
$buff = str_replace("&","&",$buff);
|
||||||
|
debugPrint($buff);
|
||||||
|
|
||||||
// 플러그인에서 생성된 코드 (img, div태그내에 editor_plugin코드 존재)의 parameter를 추출
|
// 플러그인에서 생성된 코드 (img, div태그내에 editor_plugin코드 존재)의 parameter를 추출
|
||||||
$oXmlParser = new XmlParser();
|
$oXmlParser = new XmlParser();
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,8 @@
|
||||||
|
|
||||||
class editorModel extends editor {
|
class editorModel extends editor {
|
||||||
|
|
||||||
|
var $loaded_component_list = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief 에디터를 return
|
* @brief 에디터를 return
|
||||||
**/
|
**/
|
||||||
|
|
@ -122,6 +124,7 @@
|
||||||
* @brief component의 객체 생성
|
* @brief component의 객체 생성
|
||||||
**/
|
**/
|
||||||
function getComponentObject($component, $upload_target_srl = 0) {
|
function getComponentObject($component, $upload_target_srl = 0) {
|
||||||
|
if(!$this->loaded_component_list[$component][$upload_target_srl]) {
|
||||||
// 해당 컴포넌트의 객체를 생성해서 실행
|
// 해당 컴포넌트의 객체를 생성해서 실행
|
||||||
$class_path = sprintf('%s/components/%s/', $this->module_path, $component);
|
$class_path = sprintf('%s/components/%s/', $this->module_path, $component);
|
||||||
$class_file = sprintf('%s%s.class.php', $class_path, $component);
|
$class_file = sprintf('%s%s.class.php', $class_path, $component);
|
||||||
|
|
@ -136,8 +139,10 @@
|
||||||
// 설정 정보를 추가
|
// 설정 정보를 추가
|
||||||
$component_info = $this->getComponent($component);
|
$component_info = $this->getComponent($component);
|
||||||
$oComponent->setInfo($component_info);
|
$oComponent->setInfo($component_info);
|
||||||
|
$this->loaded_component_list[$component][$upload_target_srl] = $oComponent;
|
||||||
|
}
|
||||||
|
|
||||||
return $oComponent;
|
return $this->loaded_component_list[$component][$upload_target_srl];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue