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} + +
+ +