The dreamweaver.editLockedRegions() function
Dreamweaver templates are based on a combination of locked and editable regions. Normally, these regions
are designated in the Document window, but you can use the editLockedRegions() function to lock
and unlock a template??™s regions programatically. The editLockedRegions() function works by entering
true as the function??™s argument if you want to unlock all the current document??™s locked regions, and
false to lock them again. After the routine calling editLockedRegions() ends, all regions revert to
their default status.
Because this function can potentially have undesirable results, Adobe recommends that only
custom data translators use editLockedRegions().
The dreamweaver.popupAction() and dreamweaver.runCommand() functions
Although the popupAction() and runCommand() functions are not directly useful to behavior creators
because they cannot be called from within a behavior, they do enable considerable cross-pollination of
Dreamweaver extensible objects. Invoking these functions calls an existing behavior or command and presents
its dialog box to the user??”except that you use these functions to call the behaviors or commands
from within a custom object, command, or Property inspector.
The popupAction() function takes two arguments: the name of the action file and the general function
call of the action.
Pages:
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943