Mike Lee wrote:
> 
> In editor you can use goDoCommand('cmd_bold') to trigger the bold.
> 
> How does it work for goDoCommand('cmd_paragraphState')? I assume you 
> need the state attribute from <command> and controller grabs it from 
> there. Is there some other requirements?
> 
> I couldn't get it to work. I got the thing to
> change state of <command>, and
> call globalOverlay.js -> goDoCommand(command),
> 
> however it decided to fail on me on the method:
> controller.doCommand(command);
> 
> I got a feeling its because the editor is not window._content rather 
> window.frames[0] (Not an option to change this). Any ideas?
> 
> Thanks

Okay, if I could of think for 1 more minute I would though of the 
workaround. Just using the function SetParagraphFormat of editorShell. 
Still would like to hear any suggestion why the above doesnt work tho :)

-- 
Mike Lee
http://www.exitspace.net/mike


Reply via email to