Library And Template Functions - Adobe 38040334 - Dreamweaver CS3 User Manual

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Example
If
dreamweaver.getClipboardText()
returns
boardText(true)

Library and template functions

Library and template functions handle operations that are related to library items and templates, such as creating,
updating, and breaking links between a document and a template or library item. Methods of the
weaver.libraryPalette
current document. Likewise, methods of the
in the Assets panel template objects.
dom.applyTemplate()
Availability
Dreamweaver 3.
Description
Applies a template to the current document. If no argument is supplied, the Select Template dialog box appears. This
function is valid only for the document that has focus.
Arguments
{templateURL}, bMaintainLink
• The
argument is the path to a template in the current site, which is expressed as a file:// URL.
templateURL
• The
argument is a Boolean value that indicates whether to maintain the link to the original
bMaintainLink
template (
) or not (
true
Returns
Nothing.
Enabler
See "dom.canApplyTemplate()" on page 436.
dom.detachFromLibrary()
Availability
Dreamweaver 3.
Description
Detaches the selected library item instance from its associated LBI file by removing the locking tags from around the
selection. This function is equivalent to clicking Detach from Original in the Property inspector.
Arguments
None.
returns
"text <b>bold</b> text"
.
"text bold text"
object either control or act on the selection in the Assets panel library items, not in the
dreamweaver.templatePalette
).
false
DREAMWEAVER CS3
,
dreamweaver.getClip-
dream-
object control or act on the selection
293
API Reference

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents