Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Cute Editor for .NET
»
could not get innerText in Firefox
could not get innerText in Firefox
Last post 04-30-2010, 12:30 AM by
wolf11th
. 2 replies.
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
04-28-2010, 10:54 PM
60530
wolf11th
Joined on 11-20-2009
Posts 145
could not get innerText in Firefox
Reply
Quote
var
editor1 = document.getElementById(
'<% = cmsKeyImprovement.ClientID%>'
);
var
contentInstance = editor1.GetDocument();
var
content=
contentInstance
.body.innerText
Hi there,
above code works fine in IE but not Firefox which reports an error"
contentInstance.body.innerText is undefined
"
pls help
04-29-2010, 6:12 AM
60538
in reply to
60530
Kenneth
Joined on 02-13-2008
Posts 3,886
Re: could not get innerText in Firefox
Reply
Quote
Hi wolf11th,
In forefox please use
contentInstance.body.textContent
Regards,
Ken
04-30-2010, 12:30 AM
60555
in reply to
60538
wolf11th
Joined on 11-20-2009
Posts 145
Re: could not get innerText in Firefox
Reply
Quote
thx ken
I didn't know that firefox doesn't support innertext~~~