User Guide

Document functions 155
Arguments
None.
Returns
One of the following strings: "left", "center", "right", "justify", "stretch", "vertical
left"
, "vertical center", "vertical right", "vertical justify", or "vertical
stretch"
. Returns null if the text has multiple alignments or if the selection contains no text.
Description
Gets the alignment of selected text.
dom.group()
Availability
Fireworks 3, argument deprecated in 4.
Usage
dom.group({type})
Arguments
type
An optional string that specifies how to group the items. Acceptable values are "normal",
"mask to image", and "mask to path". If the argument is omitted, "normal" is assumed. In
Fireworks 4,
"mask to image" and "mask to path" are deprecated.
Returns
Nothing.
Description
Groups the selection. To ungroup elements use dom.ungroup() (see “dom.ungroup()
on page 241).
Example
The following command sets the selected group to mask to the image.
replace with fw.getDocumentDOM().group("normal");
dom.hasCharacterMarkup()
Availability
Fireworks 3, enhanced in 4.
Usage
dom.hasCharacterMarkup(tag)
Arguments
tag
Acceptable values are "b", "i", and "u", for bold, italic, and underline; and "fwplain",
which was added in Fireworks 4, for text without character markup.