You are not logged in.
Pages: 1
Hi,
i'm new to xinha and i want to use it in a kind of groupware as an online email-editor.
To get the optimal editor-size for any users need i think it would be best placed in an own frame and then using the popupeditor function. This would handle e.g. a window resize without any additional work.
Is it possible to start the editor as full-frame popupeditor when the page loads without clicking the toolbars icon for popupeditor (even when i do dot display that special toolbar icon at all)
thanks for any help
tommi
Offline
It is not configurable as such, but I'm sure you could modify it thusly without much difficulty. The function to trigger the full screen mode is <yorueditorobjecthere>._fullScreen() so it's just a matter of hitting that at the right time.
James Sleeman
Offline
Thanks you.
I had a look at the _fullScreen() function before but i still do not know, where/how to call it.
If i make am <a> tag like:
<a href="javascript:xinha_editors.sendmail._fullScreen();">Fullscreen</a>
it works very well, but when i add the same call to the end of the page that shows xinha llike:
<script type="text/javascript">
xinha_editors.sendmail._fullScreen();
</script>
it does not work. The error message tells me "xinha_editors is null".
I also tried the end of the config.js file within the xinha_init function like:
Xinha.startEditors(xinha_editors);
xinha_editors.sendmail._fullScreen();
But then i get the error message "xinha_editors.sendmail._fullScreen is not a function".
What have i done wrong and how can i make it better?
Offline
searching for "onGenerate" i found the code "if ( this.config.fullScreen )" so it was pretty easy at last:
I just had to add the line "myeditor.config.fullScreen = true;" to config.js and now its working,
Thank you for your patience.
Offline
Pages: 1