Announcement

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

#1 2006-07-07 02:13:06

marcini
New member
Registered: 2005-12-30
Posts: 5

Force Xinha to update textarea

Hi!

I would like do do some kind of prewiev, so that the user could see, what the text he is editing in Xinha will look like on the webpage (without updating it in the database).
I try to send value of textarea to server with AJAX and then show the webpage preview in new window, but after editing text in Xinha, the textarea is empty. Textarea is updated when the form is submitted.

My question is: how can I force Xinha to update the textarea value, without submitting a form?

Offline

#2 2006-07-07 03:16:39

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Force Xinha to update textarea

var myHTML = xinha_editors.yourEditor.outwardHtml(xinha_editors.yourEdior.getHTML());


James Sleeman

Offline

#3 2006-07-07 04:26:18

marcini
New member
Registered: 2005-12-30
Posts: 5

Re: Force Xinha to update textarea

Thanks, works perfectly :-)
I would never figure it out by myself.

Offline

Board footer

Powered by FluxBB