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

This commit is contained in:
zero 2007-03-19 05:28:26 +00:00
parent f8b0d472bd
commit cc0b017bcc
4 changed files with 17 additions and 4 deletions

View file

@ -12,4 +12,5 @@
$lang->image_align_left = "글의 왼쪽으로"; $lang->image_align_left = "글의 왼쪽으로";
$lang->image_align_middle = "가운데"; $lang->image_align_middle = "가운데";
$lang->image_align_right = "글의 우측으로"; $lang->image_align_right = "글의 우측으로";
$lang->image_border = "경계선 두께";
?> ?>

View file

@ -1,5 +1,5 @@
.editor_window { .editor_window {
width:400px; width:500px;
text-align:center; text-align:center;
} }
@ -15,7 +15,7 @@
.body { .body {
float:left; float:left;
width:250px; width:350px;
text-align:left; text-align:left;
margin:5px; margin:5px;
font-size:9pt; font-size:9pt;
@ -29,10 +29,17 @@
.image_align { .image_align {
margin:0px 0px 5px 0px; margin:0px 0px 5px 0px;
float:left;
width:150px;
} }
.image_url { .image_url {
width:240px; width:350px;
border:1px solid #AAAAAA;
}
.editor_input {
width:40px;
border:1px solid #AAAAAA; border:1px solid #AAAAAA;
} }

View file

@ -41,6 +41,10 @@
</label> </label>
</div> </div>
</div> </div>
<div class="header">{$lang->image_border}</div>
<div class="body"><input type="text" class="editor_input" id="image_border" value="0" />px</div>
<div class="editor_button_area"> <div class="editor_button_area">
<input type="button" value="{$lang->cmd_insert}" class="editor_button" onclick="insertImage()" /> <input type="button" value="{$lang->cmd_insert}" class="editor_button" onclick="insertImage()" />
<input type="button" value="{$lang->cmd_close}" class="editor_button" onclick="window.close();" /> <input type="button" value="{$lang->cmd_close}" class="editor_button" onclick="window.close();" />

View file

@ -8,13 +8,14 @@ function insertImage(obj) {
else if(xGetElementById("align_left").checked==true) align = "left"; else if(xGetElementById("align_left").checked==true) align = "left";
else if(xGetElementById("align_middle").checked==true) align = "middle"; else if(xGetElementById("align_middle").checked==true) align = "middle";
else if(xGetElementById("align_right").checked==true) align = "right"; else if(xGetElementById("align_right").checked==true) align = "right";
var border = parseInt(xGetElementById("image_border").value,10);
if(!url) { if(!url) {
window.close(); window.close();
return; return;
} }
var text = "<img src=\""+url+"\" border=\"0\""; var text = "<img src=\""+url+"\" border=\""+border+"\" plugin=\"image_link\" ";
if(alt) text+= " alt=\""+alt+"\""; if(alt) text+= " alt=\""+alt+"\"";
if(align) text+= " align=\""+align+"\" "; if(align) text+= " align=\""+align+"\" ";
text+= " />"; text+= " />";