[Jwc-user] Instantiating TinyMCE from within a gwm dialog box
Status: Alpha
Brought to you by:
sstorey
From: Sean K. <se...@mr...> - 2007-07-12 08:48:05
|
Hi, I have a GWT app which pops up a gwm dialog box with two TinyMCE controls on it. setHTML doesn't work as soon as the widget is instantiated, so I overrode the onload() event to set the HTML in there, which still didn't work. If I check isattached() within this method then it returns true, which makes it strange that the setHTML doesn't work. Having torn my hair out over this without finding a way to definitively check if the widget is ready to accept text, the only workaround I could find was to load up the dialog box off screen, wait a second and a half then call setHTML and move the dialog back on screen. Is there anything i'm missing, or is there a more reliable way of checking when the widget is ready to accept some text? Thanks, Sean |