rem: this._popupDialog("insert_image.html", function(param) { if (!param) { return false; } var sel = editor._getSelection(); var range = editor._createRange(sel); editor._doc.execCommand("insertimage", false, param["f_url"]); var img = null; if (HTMLArea.is_ie) { img = range.parentElement();  if (img.tagName.toLowerCase() != "img") { img = img.previousSibling; } } else { img = range.startContainer.previousSibling; } for (field in param) { var value = param[field]; if (!value) { continue; } switch (field) { case "f_alt"    : img.alt	 = value; break; case "f_border" : img.border = parseInt(value); break; case "f_align"  : img.align	 = value; break; case "f_vert"   : img.vspace = parseInt(value); break; case "f_horiz"  : img.hspace = parseInt(value); break; } } }, null); 
add: HTMLArea._addEvent(el, "click", function (ev) { if (obj.enabled) with (HTMLArea) { _removeClass(el, "buttonActive"); _removeClass(el, "buttonHover"); obj.cmd(editor, obj.name, obj); _stopEvent(is_ie ? window.event : ev); } }); 
context: 	this._popupDialog("insert_image.html", function(param) {		if (!param) {	// user must have pressed Cancel			return false;		}		var sel = editor._getSelection();		var range = editor._createRange(sel);		editor._doc.execCommand("insertimage", false, param["f_url"]);		var img = null;		if (HTMLArea.is_ie) {			img = range.parentElement();			// wonder if this works...			if (img.tagName.toLowerCase() != "img") {				img = img.previousSibling;			}		} else {			img = range.startContainer.previousSibling;		}		for (field in param) {			var value = param[field];			if (!value) {				continue;			}			switch (field) {			    case "f_alt"    : img.alt	 = value; break;			    case "f_border" : img.border = parseInt(value); break;			    case "f_align"  : img.align	 = value; break;			    case "f_vert"   : img.vspace = parseInt(value); break;			    case "f_horiz"  : img.hspace = parseInt(value); break;			}		}	}, null);
meta: 7119	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7119/25a8b4ec79bdd65c7e50216b7ea058ea682797c5/htmlarea.js/clean/phpgwapi/js/htmlarea/htmlarea.js