Specifications
Chapter 17212
getCodeViewDropCode()
Availability
Dreamweaver MX
Description
Gets the code that is dragged and dropped in Code view from the Component panel or the code
that is cut, copied, or pasted from the Component panel.
Arguments
Dreamweaver expects componentRec.
Returns
Dreamweaver expects a string.
Example
function getCodeViewDropCode(componentRec)
{
var codeToDrop="";
if (componentRec)
codeToDrop = componentRec.name;
return codeToDrop;
}
getSetupSteps()
Availability
Dreamweaver MX
Description
Dreamweaver calls this function if setupStepsCompleted() returns zero or a positive integer.
Controls the function of server-side setup instructions, which can be implemented using
extensions that use a modal dialog box and extensions that use server components.
Returns an array string for Dreamweaver to display in either the Setup Steps dialog box or the
Components panel, depending on the extension type.
Arguments
None.
Returns
Dreamweaver expects an array of n+1 strings, where n is the number of steps, as described in the
following list:
• The title that appears above the list of setup steps.
• For each step, the text instructions, which can include any HTML markup that is legal inside a
<li> tag.
You can include hypertext links (
<a> tags) in the list of steps by using the following form:
<a ref=”#” onMouseDown="handler">Blue Underlined Text</a>
"handler"
can be replaced by any of the following strings:
• Any JavaScript expression, such as "dw.browseDocument(’http://
www.macromedia.com’)
".