onishiro, where you able tyo solve the problem?
Is is possible the use the dnn:TextEditor in the settings user control?
My dnn:TextEditor work fine within my module, but for some reason when I place the dnn:TextEditor on the setting user
control and select update DNN will not save new html data.
If the TextEditor (FCK) is set to 'Basic Text Box' when selecting update it will save my data, but if the TextEditor is set to 'Rich Text Editor' and then select update, it will save the data it was assigned in LoadSettings() But, If I have a postback event (add a asp:Button) without any event attached to it and press the asp:button before selecting 'update' the updated HTML from the dnn:TextEditor will be saved.
It seems to be grabbing the data from the viewstate or something but can't work it out.
any ideas on how to solve this?
Many thanks for any assistance.
Simon
VB:
Public Overrides Sub LoadSettings()
Try
If (Page.IsPostBack = False) Then
Dim te As New DotNetNuke.UI.UserControls.TextEditor()
te = FindControl("txthtml")
te.Text = CType(TabModuleSettings("html"), String)
End If
Catch exc As Exception 'Module failed to load
ProcessModuleLoadException(Me, exc)
End Try
End Sub
Public Overrides Sub UpdateSettings()
Try
objModules.UpdateTabModuleSetting(TabModuleId, "html", Me.txthtml.Text)
Catch exc As Exception 'Module failed to load
ProcessModuleLoadException(Me, exc)
End Try
End Sub
ASCX Page:
<%@ Register TagPrefix="dnn" TagName="TextEditor" Src="~/controls/TextEditor.ascx"%>
<dnn:TextEditor ID="txthtml" runat="server" Height="350px" Width="100%" />