User Guide

152 Chapter 5: Fireworks JavaScript API
Returns
Nothing.
Description
Flattens the entire document into a single pixel image. This is the same behavior as the Merge
Layers command.
dom.flattenSelection()
Availability
Fireworks 3.
Usage
dom.flattenSelection()
Arguments
None.
Returns
Nothing.
Description
Flattens the selection into a single pixel image. This action is the same behavior as the Merge
Images command.
dom.getFontMarkup()
Availability
Fireworks 3.
Usage
dom.getFontMarkup(fontAttribute)
Arguments
fontAttribute
Acceptable values for fontAttribute are "size", "color", and "face".
Returns
A string that specifies the markup value. Returns null if the text has multiple attributes or if the
selection contains no text.
Description
Gets a font markup attribute for the selected text.