Cheers mate thats got me going in the right direction now, all I need to know now is, how do I set the ID for the image when the tag is inserted by midas ? ?
Or alternatively can I "Select" the image and set its Attributes using DOM ? ? been trying to play around with this one n jus keep being told, that the object doesn't support this property "Daniel Fournier" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Mark McNally wrote: > > Does anyone know if a way to pass an alignment parameter into the image tag > > when using the InsertImage command exists ? ? > > > > > If you the image as an ID, you can use the DOM getElementById method to > retrieve its DOMelement and then call the setAttribute method on this > DOMelement with the alignment you want to set. > > For instance: > > <img ID="img_ID_1" src="URI" /> > > var imgNode = document.getElementById('img_ID_1'); > imgNode.setAttribute('align', 'right'); > > Of course, the document is the contentDocument of the MIDAS editor window. > > Daniel >
