Announcement

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

#1 2007-06-01 10:48:41

jedi58
Xinha Authority
From: Leicester, UK
Registered: 2007-01-14
Posts: 113
Website

loading Xinha onclick

I have a situation where a textarea does not exist until a user clicks a button; it would be ideal for this textarea to then become a xinha editor.

I've tried using:

xinha_editors[0].activateEditor();

and various other things, but none have yet worked. I've tried loading the config and xinhaCore.js in when loading the page and when attempting to start xinha and it makes no difference.


any thoughts on a way to achieve this?


David G. Paul
[url]http://www.newearthonline.co.uk[/url]

Offline

#2 2007-06-01 12:07:45

jedi58
Xinha Authority
From: Leicester, UK
Registered: 2007-01-14
Posts: 113
Website

Re: loading Xinha onclick

nevermind, I found this did it:

xinha_editors = [ 'content' ];
xinha_config = null;
xinha_init();

David G. Paul
[url]http://www.newearthonline.co.uk[/url]

Offline

Board footer

Powered by FluxBB