rem:  if (img.tagName.toLowerCase() != "img") { img = img.previousSibling; } } else { img = range.startContainer.previousSibling; } } else { 
add:  if (img.tagName.toLowerCase() != "img") { img = img.previousSibling; }  */ } else { img = range.startContainer.previousSibling; }  } else { 
context: 	Dialog(_editor_url+"plugins/UploadImage/popups/insert_image.php", function(param)	{ 				if (!param) 			{					// user must have pressed Cancel				return false;			}			var img = image;			if (!img) {			var sel = editor._getSelection();			var range = editor._createRange(sel);			editor._doc.execCommand("insertimage", false, param.f_url);			if (HTMLArea.is_ie) {			img = range.parentElement();			// wonder if this works...			if (img.tagName.toLowerCase() != "img") {			img = img.previousSibling;			}			} else {			img = range.startContainer.previousSibling;			}			} else {				img.src = param.f_url;			}			for (field in param) {				var value = param[field];				switch (field) {					case "f_alt"    : img.alt	 = value; break;					case "f_border" : img.border = parseInt(value || "0"); break;					case "f_align"  : img.align	 = value; break;					case "f_vert"   : img.vspace = parseInt(value || "0"); break;					case "f_horiz"  : img.hspace = parseInt(value || "0"); break;				}			}//		alert('');	}, outparam);
meta: 7119	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7119/2caf3908eb66fbd96b4d05949efea8a5fed8bc3d/upload-image.js/buggy/phpgwapi/js/htmlarea/plugins/UploadImage/upload-image.js