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 ExtensionsModulesModulesText property of TextEditor is emptyText property of TextEditor is empty
Previous
 
Next
New Post
9/11/2011 8:54 AM
 
Hi,

This is the first time I've used the DNN TextEditor in a DNN 6x module.

When I step through the code to save the contents of the TextEditor - the Text property is always an empty string.  Any idea what the problem may be.  All of the references appear to be correct and there are no errors logged - it just doesn't recognize the text entered into the TextEditor...
 
New Post
9/11/2011 9:22 AM
 
Update - when I un-check Supports Partial Rendering for the module control - the contents of the TextEditor are saved properly.

However, when I populate the TextEditor, and I assign an empty string to the Text property - the TextEditor retains the previous value  (i.e. whatever was in the TextEditor before it was re-populated with another selection)

I check the length of the string - and even though the line of code in blue executes as expected - the TextEditor retains the previous content if I try to assign the Text property an empty string

**************************

Dim strContent As String = objItem.TemplateContentTX.ToString.Trim

  If strContent.Length > 0 Then
              rtNewsletter.Text = objItem.TemplateContentTX.ToString
     Else
            rtNewsletter.Text = String.Empty  'this code executes - however theTextEditor retains the previous value
  End If

**************************

Note:  I get the same behaviour with all three htmlEditor providers....
 
New Post
2/24/2012 9:50 AM
 

I am also getting this issue. I have tried all of the html editors. But if postbacks are enabled they don't work. In some situations they don't save new values. In others (particularly the rad editor and telerik editor), the rich text mode is blank and none of the buttons/controls respond.

I did find a thread (that is a few years old) about a similar issue:

http://www.dotnetnuke.com/Resources/F...

This was something to do with the submit button not being registered in the update panel. (If you have Postbacks enabled, it is putting your entire module in a postback). The post indicates you can get around this by registering your submit button in the ajax update panel to do an async postback. I would have thought that this issue would have been resolved by now - but it might give someone and idea on how to resolve this issue.

If you do find a solution, please let us know!


 
New Post
2/24/2012 10:36 AM
 

I am also experiencing this same issue. I have not yet found a solution, but this is what I have learned:

I am experiencing two different issue - both when using a dnn:texteditor in a module with partial rendering enabled.

1. New Values are not saving - When when I click update, the values are not being saved. I did find this post, but it is a couple of year old: http://www.dotnetnuke.com/Resources/F.... It reports a smilar problem, resolved by registering the submit/update panel in the ajax update panel (enabling partial redering places all of your code in an update panel). I haven't get tried this... but it might be worth a try.

2. The Rad and Telerik Editors don't work . Text does not load. The toolbar items hover-over. The buttons cause the page to scroll to the top - but don't do anything . The Design/HTML/Preview buttons at the bottom don't do anything. Using firebug - I identified the following error when loading the page (with the  texteditor in a Form OnClientCommandExecuting is not defined. Not really sure what this means - but it might give someone else an idea on how to resolve this.

If you do come up with a solution, please share it with us!


 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesText property of TextEditor is emptyText property of TextEditor is empty


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