Document functions
197
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 305
).
Example
The following command sets the selected group to mask to the image:
replace with fw.getDocumentDOM().group("normal");
Summary of Contents for FIREWORKS 8-EXTENDING FIREWORKS
Page 1: ...Extending Fireworks ...
Page 4: ...4 Contents ...
Page 358: ...358 Fireworks JavaScript API ...
Page 372: ...372 Index ...