Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDNN Text Editor JavascriptDNN Text Editor Javascript
Previous
 
Next
New Post
1/31/2012 11:29 AM
 

I'm trying to use jquery to get/set the html in DNN's text editor, that is using radeditor. I have tried a few things, and I also used the client API documentation that is on Telerik's website to no avail. This should be fairly simple, and I'm not sure what I am doing wrong. 

 I figured something like this would work.

$('#txtPageContent.ClientID%>').text());

But it is displaying an empty string. Any help would be greatly appreciated.

 
New Post
2/1/2012 7:42 PM
 
the string is wrong, it's missing the start of the server block ie: $('#<%=txtPageContent.ClientID%>').text());

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
2/2/2012 8:49 AM
 

Thanks for the response Cathal. I typed that out fast and messed up. Here is what I have in my code:

var content = $find("<%=txtPageContent.ClientID%>");

The content variable is a null reference. I have also tried this with the same result:

var content = document.getElementById("<%=txtPageContent.ClientID%>");

Could it cause a problem if the editor is placed within jquery ui tabs?
 
New Post
2/2/2012 6:04 PM
 
it could be, I'd recommend you search for the element (if injected dynamically you'll have to explore the DOM via a tool such as firebug/ F12 in IE/chrome) and see what the name is like -typically it will look something like dnn_ctr2108_PageName_ControlType_teContent_PanelTextEditor AFAIR

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
2/6/2012 11:56 AM
 
Thanks for the response. I have used IE Developer tools and this is what I'm coming up with. The text area of the editor has this ID: dnn_ctr482_EditHelpPage_txtPageContent_txtPageContent_contentIframe, and the edtior has this ID: dnn_ctr482_EditHelpPage_txtPageContent_PanelTextEditor. This was after I removed the editor from inside the jquery tabs and upgraded DNN to the newest version (was hoping that might have been the problem). Either way, including the .ClientID when searching for the control should work right? Also, does the dnn editor support any of the client side functionality that the normal telerik rad editor supports?
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDNN Text Editor JavascriptDNN Text Editor Javascript


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out