You are not logged in.
Hallo,
I've explored xinha as a formidable wysiwyg html editor and I'm fond of it.
I integrated it successfully into a Java/JSF/Richfaces application.
However, for maximum confidence, there is an issue when using ajax4jsf and a 'xinhayfied' textfield:
On a loaded xhtml jsf page, xinha loads fine.
Now, it trigger an ajax request to the server side and modify a jsf backing bean, that holds the xinha textfield's string value.
After that this string is modifed, a partial page refresh is done.
Then, the new string content is displayed in the textfield as wanted, but unfortunately xinha has vanished and only the plain large textfield is shown.
Is there any way to reinitialize xinha again on the page. Currently only if the whole page is requested again, then xinha is built correctly again, via the line of my_config.js
" Xinha._addEvent(window,'load', xinha_init); ".
Is there any way to keep xinha alive? I'd appreciate any ideas very much! Thanks in advance,
http-proxy
Offline
This is beyond our sphere of influence I think, your problem is likely solvable, but with programming written by you to suit the specific way in which you're using Xinha.
In short, you'll need to re-initialize after scrubbing it (or better, don't scrub it at all, just move it out the way somewhere and put it back later).
Beware memory leaks when doing that though.
James Sleeman
Offline