| schnittman 2004-06-02, 11:15 pm |
| To give more details, the problem seems to be in the return statement below
where DW claims that there is a Type Error because
cmdDOM.parentWindow.createTableStr
is not a function.
The complete code for this function is below:
function objectTag(){
// We're keeping this a separate command, as we want to use the
// "buttons at the bottom" style.
var cmdFile = dreamweaver.getConfigurationPath() +
"/Commands/TableCommands.htm";
var cmdDOM = dreamweaver.getDocumentDOM(cmdFile);
if ( dw.getShowDialogsOnInsert() )
{
dreamweaver.popupCommand("TableCommands.htm");
}
else
{
cmdDOM.parentWindow.initializeUI();
cmdDOM.parentWindow.setTableStr();
}
return (cmdDOM.parentWindow.createTableStr());
}
|