beautypg.com

Getcodeviewdropcode() – Adobe Extending Dreamweaver CS4 User Manual

Page 320

background image

314

EXTENDING DREAMWEAVER CS4

Components

id="DWCFCsContext">

id="DWContext_CFCs">

MMString:name="Components/ColdFusion/CFCs/CFCsMenus_xml/DWContext_CFCs_createNewCFC/menuitem
/name" domRequired="false" enabled="true" command="createCFC()"
id="DWContext_CFCs_createNewCFC" />

MMString:name="Components/ColdFusion/CFCs/CFCsMenus_xml/DWContext_CFCs_editCode/menuitem/nam
e" domRequired="false" enabled="canGetSelectedCFC()" command="editCFC();"
id="DWContext_CFCs_editCode" />

MMString:name="Components/ColdFusion/CFCs/CFCsMenus_xml/DWContext_CFCs_getDetails/menuitem/n
ame" domRequired="false" enabled="canGetDetails()" command="getDetails()"
id="DWContext_CFCs_getDetails" />

MMString:name="Components/ColdFusion/CFCs/CFCsMenus_xml/DWContext_CFCs_getDescription/menuit
em/name" domRequired="false" enabled="canGetSelectedCFC()" command="getDescription()"
id="DWContext_CFCs_getDescription" />


MMString:name="Components/ASP_NET_Csharp/Connections/ConnectionsMenus_xml/DWShortcuts_Server
Component_Insert/menuitem/name" domRequired="false" enabled="insertCFCEnabled();"
command="clickedInsertCFC();" id="DWShortcuts_ServerComponent_Insert" />

getCodeViewDropCode()

Availability
Dreamweaver MX.

Description
This function gets the code that is either dragged, cut, or copied into the Code view from the Components panel.

Arguments

componentRec

The

componentRec

argument is an object.

Returns
The string that contains the code for the component.

Example
The following example identifies the code for an Adobe ColdFusion Component (CFC):

This manual is related to the following products: