In article <[EMAIL PROTECTED]>,
 Mike Lee <[EMAIL PROTECTED]> wrote:

> Neil wrote:
> > Mike Lee wrote:
> > 
> >> In editor you can use goDoCommand('cmd_bold') to trigger the bold.
> >>
> >> How does it work for goDoCommand('cmd_paragraphState')?
> > 
> > 
> > This is a complete guess but I think you need goDoStatefulCommand.
> > 
> 
> Yeah tried doStatefulCommand() (dont think there is a 
> 'goDoStatefulCommand()').
> 
> Still no luck, since all doStatefulCommand() does is change the state in 
> <command> then call goDoCommand()

This is how 'stateful' commands work (since we didn't used to have
a 'do command' API that took arguments. They set state on the command
node in the XUL, call goDoCommand(), then the state is read off the
XUL node by the C++.

Simon

-- 
          Simon Fraser   Entomologist
  [EMAIL PROTECTED]   http://people.netscape.com/sfraser/

Reply via email to