rem: editorShell.InsertElement(imageElement, false); 
add:  editorShell.InsertElement(imageElement, true); 
context: function onOK(){  imageElement.setAttribute("src",dialog.srcInput.value);  // We must convert to "file:///" format else image doesn't load!    // TODO: we should confirm with user if no alt tag  imageElement.setAttribute("alt", dialog.altTextInput.value);    // set width if custom size and width is greater than 0  if ( dialog.customsizeRadio.checked      && ( dialog.imagewidthInput.value.length > 0 )     && ( dialog.imageheightInput.value.length > 0 ) )  {    imageElement.setAttribute( "width", dialog.imagewidthInput.value );    imageElement.setAttribute( "height", dialog.imageheightInput.value );  }  else  {    imageElement.removeAttribute( "width" );    imageElement.removeAttribute( "height" );  }    // spacing attributes  if ( dialog.imagelrInput.value.length > 0 )    imageElement.setAttribute( "hspace", dialog.imagelrInput.value );  else    imageElement.removeAttribute( "hspace" );    if ( dialog.imagetbInput.value.length > 0 )    imageElement.setAttribute( "vspace", dialog.imagetbInput.value );  else    imageElement.removeAttribute( "vspace" );    // note this is deprecated and should be converted to stylesheets  if ( dialog.imageborderInput.value.length > 0 )    imageElement.setAttribute( "border", dialog.imageborderInput.value );  else    imageElement.removeAttribute( "border" );  alignpopup = document.getElementById("image.alignType");  if ( alignpopup )  {    alignpopup.getAttribute( "value", alignvalue );    dump( "popup value = " + alignvalue + "\n" );    if ( alignvalue == "at the bottom" )      imageElement.removeAttribute("align");    else      imageElement.setAttribute("align", alignvalue );  }  // handle insertion of new image  if (insertNew) {    dump("src="+imageElement.getAttribute("src")+" alt="+imageElement.getAttribute("alt")+"\n");    editorShell.InsertElement(imageElement, false);  }  // dismiss dialog  window.close();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/8f1b0f0e2f48f83a0ca1fc5b895d4b1c08312577/EdImageProps.js/clean/editor/ui/dialogs/content/EdImageProps.js