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

@ -8,13 +8,14 @@ function insertImage(obj) {
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";
var border = parseInt(xGetElementById("image_border").value,10);
if(!url) {
window.close();
return;
}
var text = "<img src=\""+url+"\" border=\"0\"";
var text = "<img src=\""+url+"\" border=\""+border+"\" plugin=\"image_link\" ";
if(alt) text+= " alt=\""+alt+"\"";
if(align) text+= " align=\""+align+"\" ";
text+= " />";