I am trying to manipulate a Telerik Text Editor element with JavaScript. I am using the following code:
document.getElementById("ctl00_ContentPlaceHolder1_RadEditor1_contentIframe").childNodes
Example of Telerik Text Editor @ http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx
However, I get the following error: "Your browser does not support inline frames or is currently configured not to display them" with all major browsers.
Does any DOM ninja out there know how to solve this? I want to set the text value to a string.
Thanks
Try the following code:
The following line changes the whole thing:
Or, you can change the iframe body only: