Announcement

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

#1 2009-06-10 14:16:55

MyView
New member
Registered: 2009-06-10
Posts: 2

Changes doesnt affect until press htmlMode button

Hi,
I tried to use Xinha as editor in my ajax based project.
problem was that when I work with editor (type text, apply formats, inser image...) if i send form to backend script nothing arrives, but if i press htmlMode button before sending and press it again and go back to wysiwyg mode then data will send truely, i dont have any submit button with id 'submit' and i use 'Prototype' javaScript framework that collect my form fields in JSon format them sends that.

thank you
smile

Offline

#2 2009-06-12 04:37:39

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Changes doesnt affect until press htmlMode button

I suppose you try to get the HTML from the textarea, but it is not updated in real time. You can use this function to retrive the HTML directly from the Xinha object instead

xinha_editors.yourEditor.getEditorContent()

or you can call the static function

Xinha.updateTextareas()

save the contents of all Xinhas to their respective textareas programatically

Last edited by ray (2009-06-12 04:49:51)

Offline

#3 2009-06-13 00:20:18

MyView
New member
Registered: 2009-06-10
Posts: 2

Re: Changes doesnt affect until press htmlMode button

oh very thanks,
it now works great!

Offline

Board footer

Powered by FluxBB