You are not logged in.
Normally you just can call the action method defined for the button after generation or call something like
editor._fullScreen();
editor.tb_objects[[FullScreen].swapImage([_editor_url + cfg.imgURL + 'ed_buttons_main.gif',9,0]);
Offline
Hi,
I'm interested to start in full screen mode. I've tried your suggestion, but I'd an error message:
this._doc has no properties in htmlarea.js Line 3610 and 1397.
I'm working on Firefox. Did you succeed with this ? how?
Thanks.
Coubiac
Offline
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
Last edited by bvr (2006-04-05 10:27:14)
Offline
I don't know since when it is available, but I noticed Xinha.Config has a property fullScreen which does exactly that. It is false by default. Set it to true in your config script.
Offline