From ca7c17c0363c0ca50fb465f7a7357a2c8e4cf62c Mon Sep 17 00:00:00 2001 From: zero Date: Fri, 16 Mar 2007 06:09:23 +0000 Subject: [PATCH] git-svn-id: http://xe-core.googlecode.com/svn/trunk@498 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/template/TemplateHandler.class.php | 2 +- .../urllink/{urllink.gif => icon.gif} | Bin modules/editor/editor.view.php | 6 ++++-- modules/editor/tpl/editor.html | 17 +++++++++-------- .../images/multimedia_icon.gif} | Bin 5 files changed, 14 insertions(+), 11 deletions(-) rename modules/editor/components/urllink/{urllink.gif => icon.gif} (100%) rename modules/editor/{components/multimedialink/icon.gif => tpl/images/multimedia_icon.gif} (100%) diff --git a/classes/template/TemplateHandler.class.php b/classes/template/TemplateHandler.class.php index 34e787952..c14446801 100644 --- a/classes/template/TemplateHandler.class.php +++ b/classes/template/TemplateHandler.class.php @@ -123,7 +123,7 @@ if(substr($path,0,1)=='/' || eregi(":\/\/",$path)) return $str1; - $path = preg_replace('/^([\.\/]+)/','',$path); + $path = preg_replace('/^(\.\/|\/)/','',$path); $path = 'tpl_path?>'.$path; return str_replace($str2, $path, $str1); } diff --git a/modules/editor/components/urllink/urllink.gif b/modules/editor/components/urllink/icon.gif similarity index 100% rename from modules/editor/components/urllink/urllink.gif rename to modules/editor/components/urllink/icon.gif diff --git a/modules/editor/editor.view.php b/modules/editor/editor.view.php index 8ef694a24..adf5fdac0 100644 --- a/modules/editor/editor.view.php +++ b/modules/editor/editor.view.php @@ -22,8 +22,10 @@ Context::set('allow_fileupload', $allow_fileupload); // 에디터 컴포넌트를 구함 - $component_list = FileHandler::readDir($this->module_path.'components'); - debugPrint($component_list); + if(!Context::get('component_list')) { + $component_list = FileHandler::readDir($this->module_path.'components'); + Context::set('component_list', $component_list); + } // 템플릿을 미리 컴파일해서 컴파일된 소스를 return $tpl_path = $this->module_path.'tpl'; diff --git a/modules/editor/tpl/editor.html b/modules/editor/tpl/editor.html index e786a306f..23702da2c 100644 --- a/modules/editor/tpl/editor.html +++ b/modules/editor/tpl/editor.html @@ -32,19 +32,20 @@
- {$lang->edit->help_fontcolor} - {$lang->edit->help_fontbgcolor} {$lang->edit->help_bold} {$lang->edit->help_italic} {$lang->edit->help_underline} {$lang->edit->help_strike} - {$lang->edit->help_add_url} - {$lang->edit->help_add_image} - {$lang->edit->help_add_multimedia} - {$lang->edit->help_add_emoticon} - {$lang->edit->help_add_quotation} - {$lang->edit->help_add_html}
+ + +
+ + {$component} + +
+ +