Re: Setting Editor.Text value when Editor block style is display:none in FireFox

  •  04-28-2009, 9:06 AM

    Re: Setting Editor.Text value when Editor block style is display:none in FireFox

    Hi Kenneth,
     
    I have the latest build.  I just downloaded it for a third time a few minutes ago.
     
    Your sample code yielded the exact same results for me as my own code (whew - I'm not crazy).  I posted it to my site.  Go to http://bayareacareerpathways.org.previewdns.com/test.aspx to see it first-hand.
     
    After the page first loads, if you click the sethtml button, you get an error: Object doesn't support this property or method.
     
    If you first click show, then click sethtml, it works just fine: the word test shows up in the editor.
     
    If you first click show, then hide, then click sethtml, again it works fine.  There is now error, and if you click show again the word test is right in there.
     
    Also, I noticed that when you first click show (after loading the page), the editor that comes up is blank - it has no icons or dropdowns - it's just a blank text area.  After a split second it populates all the icons and dropdowns.
     
    So my guess is that if the editor is in a non-displaying div, then it doesn't instantiate itself until the div is shown. 
     
    Thanks!
     
    Aaron
View Complete Thread