You are not logged in.
Pages: 1
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
Ok, i am idiot right now sorry, answer is: xinha_editors.myTextArea.getEditorContent()
Thanks!
Offline
Pages: 1