Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 Re: User Discussion & Help » Is it possible to start xinha in fullscreen mode? » 2006-04-05 10:26:04

bvr

I just implemented this, here is the code :

      // load editor
      xinha_editors = HTMLArea.makeEditors(xinha_editors, xinha_config, xinha_plugins);
      HTMLArea.startEditors(xinha_editors);
           
      // custom code starts here..
      init_custom();
    }
    
    function init_custom()
    {
       // wait untill the editor becomes available
       var editor = xinha_editors['<the name of your editor>'];                               
       if (!editor._doc)
       {
          setTimeout('init_custom()', 500);
        
       // do custom defaults                  
       } else
       {                 
          editor._fullScreen();
          //editor.enableToolbar();         
       }
   }

a dirty hack but it does the trick.. good luck smile

Board footer

Powered by FluxBB