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

This commit is contained in:
zero 2007-04-02 02:55:47 +00:00
parent 0ec053b51b
commit 94b4abaef6
3 changed files with 4 additions and 6 deletions

View file

@ -723,8 +723,7 @@
} }
/** /**
* @brief 내용의 멀티미디어 태그를 html 태그로 변경 * @brief 내용의 에디터 컴포넌트 코드를 변환
* <img ... class="multimedia" ..> 되어 있는 코드를 변경
**/ **/
function _transEditorComponent($matches) { function _transEditorComponent($matches) {
// IE에서는 태그의 특성중에서 " 를 빼어 버리는 경우가 있기에 정규표현식으로 추가해줌 // IE에서는 태그의 특성중에서 " 를 빼어 버리는 경우가 있기에 정규표현식으로 추가해줌
@ -732,14 +731,14 @@
$buff = preg_replace('/([^=^"^ ]*)=([^"])([^=^ ]*)/i', '$1="$2$3"', $buff); $buff = preg_replace('/([^=^"^ ]*)=([^"])([^=^ ]*)/i', '$1="$2$3"', $buff);
$buff = str_replace("&","&amp;",$buff); $buff = str_replace("&","&amp;",$buff);
// 플러그인에서 생성된 코드 (img, div태그내에 plugin코드 존재)의 parameter를 추출 // 플러그인에서 생성된 코드 (img, div태그내에 editor_plugin코드 존재)의 parameter를 추출
$oXmlParser = new XmlParser(); $oXmlParser = new XmlParser();
$xml_doc = $oXmlParser->parse($buff); $xml_doc = $oXmlParser->parse($buff);
if($xml_doc->div) $xml_doc = $xml_doc->div; if($xml_doc->div) $xml_doc = $xml_doc->div;
$xml_doc->body = $matches[3]; $xml_doc->body = $matches[3];
// plugin attribute가 없으면 return // attribute가 없으면 return
$editor_component = $xml_doc->attrs->editor_component; $editor_component = $xml_doc->attrs->editor_component;
if(!$editor_component) return $matches[0]; if(!$editor_component) return $matches[0];

View file

@ -15,7 +15,6 @@ function exec_xml(module, act, params, callback_func, response_tags, callback_fu
} }
oXml.addParam("module", module); oXml.addParam("module", module);
oXml.addParam("act", act); oXml.addParam("act", act);
oXml.addParam("referer_url", location.href);
if(typeof(response_tags)=="undefined" || response_tags.length<1) response_tags = new Array('error','message'); if(typeof(response_tags)=="undefined" || response_tags.length<1) response_tags = new Array('error','message');

View file

@ -71,7 +71,7 @@
* @brief 페이지 관리에서 사용될 코드 생성 팝업 * @brief 페이지 관리에서 사용될 코드 생성 팝업
**/ **/
function dispPluginGenerateCodeInPage() { function dispPluginGenerateCodeInPage() {
$this->dispGenerateCode(); $this->dispPluginGenerateCode();
$this->setTemplateFile('plugin_generate_code_in_page'); $this->setTemplateFile('plugin_generate_code_in_page');
} }