rem: var insertcmd = dojo.widget.Editor2Manager.getCommand('inserthtml'); 
add: var insertcmd = curInst.getCommand('inserthtml'); 
context: 	ok: function(){		var curInst = dojo.widget.Editor2Manager.getCurrentInstance();		var insertcmd = dojo.widget.Editor2Manager.getCommand('inserthtml');		var option = 0;		var attstr='';		for(var i=0; i<this.editableAttributes.length; ++i){			name = this.editableAttributes[i];			var value = this["image_"+name].value;			if(value.length > 0){				attstr += name + '="'+value+'" ';			}		}		if(this.imageNode){			dojo.withGlobal(curInst.window, "selectElement", dojo.html.selection, [this.imageNode]);		}		insertcmd.execute('<img '+attstr+this.extraAttribText+'/>');		this.cancel();	}
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/InsertImageDialog.js/clean/www/resources/dojo-ajax/src/widget/Editor2Plugin/InsertImageDialog.js