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.Does anyone know if a way to pass an alignment parameter into the image tag when using the InsertImage command exists ? ?
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
