Announcement

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

#1 2011-03-26 11:18:17

dash
New member
Registered: 2011-03-10
Posts: 4

Can't get textarea.value

Hi!
I am trying to get texarea's value like this (example from your web):
<form name="form" onclick="this.myTextArea.name='myTextArea';confirm(this.myTextArea.value);"><textarea id="myTextArea" name="myTextArea">TEST</textarea></form>

And i tried also:
alert(document.getElementById('myTextArea').value);

And i am getting this: "TEST". This is OK, but when i write something in Xinha into myTextArea, it is still showing "TEST" - and it shouldn't.
When i switch view to HTML source, it works, but only until i turn off HTML source editing. And when i swith view to HTML again there is additional character: "⁞" at the end.
Xinha works great, and no error is showing (IE,FF,Opera,Chrome). I have last stable Xinha release 0.96.1

What's wrong? How can i get HTML source with javascript in my case? Point me in right direction here!
Thanks!

Last edited by dash (2011-03-26 11:28:55)

Offline

#2 2011-03-26 12:30:15

dash
New member
Registered: 2011-03-10
Posts: 4

Re: Can't get textarea.value

Ok, i am idiot right now smile sorry, answer is: xinha_editors.myTextArea.getEditorContent()
Thanks!

Offline

Board footer

Powered by FluxBB