Hey everyone,
I am not sure why, but UD does not include "justify" as a text alignment option. Perhaps it is not part of the official language standard.
I have worked out how to show "justify" in the menus, but it doesn't do anything in the code.
I have put
<menuitem name="_Justify" enabled="true" command="dw.getDocumentDOM().setTextAlignment('justify')" checked="dw.getDocumentDOM().getTextAlignment() == 'justify'" id="DWContext_Text_Alignment_Justify" />
into menus.xml. But it seems that ="dw.getDocumentDOM().setTextAlignment('justify')" doesn't hook in anywhere.
Anyone have any idea if it is possible to create "new" commands in DW.
If so, how?
Steve Davis
hey.you@hahaha.com.au
I am not sure why, but UD does not include "justify" as a text alignment option. Perhaps it is not part of the official language standard.
I have worked out how to show "justify" in the menus, but it doesn't do anything in the code.
I have put
<menuitem name="_Justify" enabled="true" command="dw.getDocumentDOM().setTextAlignment('justify')" checked="dw.getDocumentDOM().getTextAlignment() == 'justify'" id="DWContext_Text_Alignment_Justify" />
into menus.xml. But it seems that ="dw.getDocumentDOM().setTextAlignment('justify')" doesn't hook in anywhere.
Anyone have any idea if it is possible to create "new" commands in DW.
If so, how?
Steve Davis
hey.you@hahaha.com.au