diff --git a/modules/editor/components/slide_show/icon.gif b/modules/editor/components/slide_show/icon.gif index 6151e2792..f5a20f9d0 100644 Binary files a/modules/editor/components/slide_show/icon.gif and b/modules/editor/components/slide_show/icon.gif differ diff --git a/modules/editor/components/slide_show/lang/ko.lang.php b/modules/editor/components/slide_show/lang/ko.lang.php index 107223fa4..505d0f610 100644 --- a/modules/editor/components/slide_show/lang/ko.lang.php +++ b/modules/editor/components/slide_show/lang/ko.lang.php @@ -1,20 +1,13 @@ - * @brief 위지윅에디터(editor) 모듈 > 이미지링크(image_link) 컴포넌트의 언어팩 + * @brief 위지윅에디터(editor) 모듈 > 슬라이드쇼(slide_show) 컴포넌트의 언어팩 **/ - $lang->imagelink = "이미지 자료 연결"; - $lang->image_url = "이미지 경로"; - $lang->image_alt = "설명 입력"; - $lang->image_scale = "이미지크기"; - $lang->image_align = "정렬 방법 "; - $lang->image_align_normal = "한 문단을 차지"; - $lang->image_align_left = "글의 왼쪽으로"; - $lang->image_align_middle = "가운데"; - $lang->image_align_right = "글의 우측으로"; - $lang->image_border = "경계선 두께"; - - $lang->cmd_get_scale = "크기 구하기"; + $lang->slide_show = "슬라이드쇼 제작"; + $lang->width = "가로크기"; + $lang->height = "세로크기"; + $lang->image_list = "이미지 목록"; + $lang->about_image_list = "슬라이드쇼에 추가할 파일을 선택하세요. 선택후 드래그 또는 shift+클릭(범위선택), ctrl+클릭(개별선택) 가능합니다"; ?> diff --git a/modules/editor/components/slide_show/slide_show.class.ph b/modules/editor/components/slide_show/slide_show.class.php similarity index 58% rename from modules/editor/components/slide_show/slide_show.class.ph rename to modules/editor/components/slide_show/slide_show.class.php index 211444b22..21d488e93 100644 --- a/modules/editor/components/slide_show/slide_show.class.ph +++ b/modules/editor/components/slide_show/slide_show.class.php @@ -1,11 +1,11 @@ upload_target_srl = $upload_target_srl; $this->component_path = $component_path; } @@ -41,25 +41,7 @@ * DocumentModule::transContent() 에서 해당 컴포넌트의 transHtml() method를 호출하여 고유코드를 html로 변경 **/ function transHTML($xml_obj) { - $src = $xml_obj->attrs->src; - $alt = $xml_obj->attrs->alt; - $width = $xml_obj->attrs->width; - $height = $xml_obj->attrs->height; - $align = $xml_obj->attrs->align; - $border = $xml_obj->attrs->border; - - $src = str_replace(array('&','"'), array('&','&qout;'), $src); - if(!$alt) $alt = $src; - - $output = array(); - $output = array("src=\"".$src."\""); - if($alt) $output[] = "alt=\"".$alt."\""; - if($alt) $output[] = "title=\"".$alt."\""; - if($width) $output[] = "width=\"".$width."\""; - if($height) $output[] = "height=\"".$height."\""; - if($align) $output[] = "align=\"".$align."\""; - if($border) $output[] = "border=\"".$border."\""; - return ""; + return; } } diff --git a/modules/editor/components/slide_show/tpl/popup.css b/modules/editor/components/slide_show/tpl/popup.css index c2fc5eeb7..66b767376 100644 --- a/modules/editor/components/slide_show/tpl/popup.css +++ b/modules/editor/components/slide_show/tpl/popup.css @@ -35,22 +35,14 @@ font-size:9pt; } -.body label { - cursor:pointer; - font-size:9pt; +.image_list { + width:380px; } -.image_align { - margin:0px 0px 5px 0px; - float:left; - width:150px; -} - -.image_url { - width:350px; - height:13px; +.about_image_list { + margin-top:10px; font-size:9pt; - border:1px solid #AAAAAA; + color:#AAAAAA; } .editor_input { diff --git a/modules/editor/components/slide_show/tpl/popup.html b/modules/editor/components/slide_show/tpl/popup.html index 07e9c9b3a..99aacdf5b 100644 --- a/modules/editor/components/slide_show/tpl/popup.html +++ b/modules/editor/components/slide_show/tpl/popup.html @@ -3,59 +3,26 @@
+
-
{$lang->imagelink}
+
{$lang->slide_show}
-
{$lang->image_url}
-
+
{$lang->width}
+
px
-
{$lang->image_scale}
+
{$lang->height}
+
px
+ +
{$lang->image_list}
- px - px - +
+ +
+
{$lang->about_image_list}
- -
{$lang->image_alt}
-
- -
{$lang->image_align}
-
-
- - -
-
- - -
-
- - -
-
- - -
-
- -
{$lang->image_border}
-
px
-
diff --git a/modules/editor/components/slide_show/tpl/popup.js b/modules/editor/components/slide_show/tpl/popup.js index 2dd39dcf0..f51d302d0 100644 --- a/modules/editor/components/slide_show/tpl/popup.js +++ b/modules/editor/components/slide_show/tpl/popup.js @@ -1,92 +1,32 @@ -/** - * popup으로 열렸을 경우 부모창의 위지윅에디터에 select된 이미지가 있는지 체크하여 - * 있으면 가져와서 원하는 곳에 삽입 - **/ -function getImage() { - // 부모 위지윅 에디터에서 선택된 영역이 있는지 확인 +var selected_node = null; +function getSlideShow() { + // 부모창이 있는지 체크 if(typeof(opener)=="undefined") return; - // url이 미리 입력되어 있을 경우 scale구해줌 - if(xGetElementById("image_url").value) { - setTimeout(function() { getImageScale(); }, 500); - return; + // 부모창의 업로드 이미지 목록을 모두 가져와서 세팅 + var fo = xGetElementById("fo"); + var upload_target_srl = fo.upload_target_srl.value; + var parent_list_obj = opener.xGetElementById("uploaded_file_list_"+upload_target_srl); + var list_obj = xGetElementById("image_list"); + + var length = parent_list_obj.length; + for(var i=0;i