User Guide

148 Fireworks JavaScript API
Description
Adds a new symbol to the library and opens the symbol document for editing. Optionally
adds an instance of the symbol to the document.
Example
The following command adds a new graphic symbol called text to the library and places an
instance of it in the document:
fw.getDocumentDOM().addNewSymbol("graphic", "text", true);
dom.addNewText()
Availability
Fireworks 3.
Usage
dom.AddNewText(boundingRectangle, bInitFromPrefs)
Arguments
boundingRectangle A rectangle that specifies the bounds within which to place the new
text box (see “Rectangle data type” on page 12).
bInitFromPrefs If bInitFromPrefs is false, the default values for all style properties are
used. If it is
true, the most recent values set by the user are used.
Returns
Nothing.
Description
Adds a new empty text block within the specified bounding rectangle. (To place text in the
box, use
dom.setTextRuns().)
Example
The following command adds a text box with the most recently used style properties:
fw.getDocumentDOM().addNewText({left:43, top:220, right:102, bottom:232},
true);