Announcement

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

#1 2010-12-22 07:27:11

ajeetverma
New member
Registered: 2010-07-12
Posts: 2

Getting the text inserted in Xinha editor through Javascript

Hello Frnds,

I am using the Xinha Editor in my application . it is running well .

but i have a problem , i want that any user write some text in xinha editor .
and there is a button . and a javascript function called on that button .

so my problem is that when user click that link , so i want that inserted text hold in a variable through javascript .

when i got the value through the

var txtQues = document.getElementById("txtQuestion").value;

so txtQues returns the Null value .

So Please any one tell me that How i can get the text write by anyone through the javascript  .


Thanks in advance .

Offline

#2 2010-12-22 10:13:34

ejucovy
Xinha Community Member
From: NY
Registered: 2010-11-15
Posts: 35
Website

Re: Getting the text inserted in Xinha editor through Javascript

Xinha.getEditor("txtQuestion").getEditorContent()

Offline

#3 2011-02-19 01:44:41

inhanoCit
Banned
From: Ireland
Registered: 2011-02-19
Posts: 1

Re: Getting the text inserted in Xinha editor through Javascript

+1

Offline

Board footer

Powered by FluxBB