diff --git a/modules/editor/components/image_link/lang/ko.lang.php b/modules/editor/components/image_link/lang/ko.lang.php index 3c7b0688c..8a51f66eb 100644 --- a/modules/editor/components/image_link/lang/ko.lang.php +++ b/modules/editor/components/image_link/lang/ko.lang.php @@ -6,6 +6,7 @@ **/ $lang->image_url = "이미지 경로"; + $lang->image_alt = "설명"; $lang->image_align = "정렬"; $lang->image_align_normal = "한 문단을 차지"; $lang->image_align_left = "글의 왼쪽으로"; diff --git a/modules/editor/components/image_link/tpl/popup.html b/modules/editor/components/image_link/tpl/popup.html index 732d059d4..d86112ef8 100644 --- a/modules/editor/components/image_link/tpl/popup.html +++ b/modules/editor/components/image_link/tpl/popup.html @@ -3,13 +3,15 @@
-
+
{$lang->image_url}
+
{$lang->image_alt}
+
{$lang->image_align}
- +
- - + +
diff --git a/modules/editor/components/image_link/tpl/popup.js b/modules/editor/components/image_link/tpl/popup.js index 860919d4b..a5131a045 100644 --- a/modules/editor/components/image_link/tpl/popup.js +++ b/modules/editor/components/image_link/tpl/popup.js @@ -1,7 +1,23 @@ function insertImage(obj) { - if(typeof(opener)=='undefined') return; + if(typeof(opener)=="undefined") return; - var text = "\""+caption+"\""; + var url = xGetElementById("image_url").value; + var alt = xGetElementById("image_alt").value; + var align = ""; + if(xGetElementById("align_normal").checked==true) align = ""; + else if(xGetElementById("align_left").checked==true) align = "left"; + else if(xGetElementById("align_middle").checked==true) align = "middle"; + else if(xGetElementById("align_right").checked==true) align = "right"; + + if(!url) { + window.close(); + return; + } + + var text = "