Home › Forums › General XMetaL Discussion › Set align and valign attributes in xmax. › Reply To: Set align and valign attributes in xmax.
Reply to: Set align and valign attributes in xmax.
February 17, 2009 at 5:53 pmHi mag3737,
Thanxs for replying,
Yes I am aware that there are two parts, part one, the UI and buttons I have done and master the techniques behind. I am now in the situation where I am in an Javascript function that should “do the job”.
I don't get the API to do what i want. If I in my function call:
[code]XMControl.Document.Range.ContainerNode.setAttribute(“align”,”center”)[/code]
Then the cell that i stand in or the first cell in a selection get the attribute. What I want to do is to iterate through all of the cells in the selection and do the same thing.
Looking forward for some examples from you or Derek.
/Jonathan