You are not logged in.
Pages: 1
Hello,
How can I get the content of my textarea with a Xinha function ?
For example, is there a function like : "HTMLArea.getHTMLContent()" or something like this ?
I can't use document.myform.myxinhatexterea.value, i dunno why but it doesn't work with Firefox 1.5.
Thanx for your help
Boo
Offline
Yep but how can I can get the content of my xinha editor ?
Offline
The Xinha object has the method getHTML() to retrieve the content of the editor.
var editor = xinha_object; // e.g. xinha_editors.myxinhatexterea if you use the xinha_objects array or __htmlareas.indexNumber
var html = editor.outwardHtml(editor.getHTML()); //editor.outwardHtml() does some needed changes to the raw HTML from getHTML()
What exactly do you want to do?
Offline
Ho great it works !
I just wanted to get the contents of a xinha editor, it worked well with IE and Firefox 1.0 but I had a problem with Firefox 1.5 where document.myform.myxinhatextarea.value returned nothing.
Thx a lot !
Offline
Pages: 1