mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-28 07:39:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@527 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
7f13b0e585
commit
4d122dc809
3 changed files with 25 additions and 6 deletions
|
|
@ -1,7 +1,23 @@
|
|||
function insertImage(obj) {
|
||||
if(typeof(opener)=='undefined') return;
|
||||
if(typeof(opener)=="undefined") return;
|
||||
|
||||
var text = "<img src=\""+obj.src+"\" border=\"0\" alt=\""+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 = "<img src=\""+url+"\" border=\"0\"";
|
||||
if(alt) text+= " alt=\""+alt+"\"";
|
||||
if(align) text+= " align=\""+align+"\" ";
|
||||
text+= " />";
|
||||
|
||||
opener.editorFocus(opener.editorPrevSrl);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue