I'm not sure if anyone else has run into this issue with using TextEditor control in a custom module, but wanted to share my experience in case it helps someone.
I had need to create a few custom profile pages for different roles on a site. My goal was to emulate the basic functionality of the default Activity-Fee/Profile edit page and really wanted the collapsible tabs.
To this end, I created a new module using Chris Hammonds template (thanks again for this...PS. I was NOT using the DAL2 template).
Everything was working well until the point of adding the TextEditor control for the Company Info/Bio section.
This was added at the top of my control file: <%@ Register TagPrefix="dnn" TagName="TextEditor" Src="~/controls/TextEditor.ascx"%>
Instantiated down in the form like this: <dnn:TextEditor runat="server" id="txtClientData" height="400" width="100%" />
And it immediately broke the dnnTabs().dnnPanels(); that previously worked on the first 3 sections added to the form. I borrowed the javascript from EditUser.ascx file as that page used the same control and obviously worked.
<script language="javascript" type="text/javascript">
/*globals jQuery, window, Sys */
(function ($, Sys) {
function setUpDnnEditUser() {
$('#divProfile').dnnTabs().dnnPanels();
}
$(document).ready(function () {
setUpDnnEditUser();
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function () {
setUpDnnEditUser();
});
});
} (jQuery, window.Sys));
</script>
As I said, the 3 tabs already in place for Name, Address, Contact Info were setup and worked. This didn't break until adding the TextEditor.ascx control.
I tried multiple variations of Javascript and JQuery to enter a .noConflict(); resolution with no success.
In the end, I had to install the CKEditor HTML Editor as my default Editor control. This got the tabs working again up to the point where AutoSave tried to save the content (25 seconds default). I had to then go into the configuration of the editor and remove AutoSave from the extensions used by the CKEditor.
Success.
PostScript Note: Because my skin does use some JQuery plugins as well, I did try changing to the default Gravity skin prior to installation of the CKEditor Control. This resulted in no difference. There still seemed to be some sort of jQuery conflict, but yet, I didn't see any instance of jQuery being used by the text editor control.
In the end the point is to have the functionality you want, which I now have, but I sure wish I could have figured out why the original code didn't work instead of having to install and configure a separate HTMLEditor control to work around the issue.