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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Custom module problem with FCKEditorCustom module problem with FCKEditor
Previous
 
Next
New Post
11/29/2007 11:38 AM
 

I am in the process of creating a custom module that among other things needs to provide a rich text memo capability.  I figured this would best be handled using the FCKEditor since it's already use in DNN.  I found the DotNetNuke.HtmlEditor.FckHtmlEditorProvider dll and used that in the Visual Studio toolbox, then upon adding an instance of that control it could not create it because of the error "Could not load file or assembly 'DotNetNuke, Version=3.3.6.41880..." etc.  Since I am using DNN 4.5.5, and already had that reference in my project, I figured this was just going the wrong way about it so I instead downloaded the full FCKEditor and added that to my project.  That got it working fine, but the performance of the page degrades more and more with each load during a session, for tasks that have nothing to do with the editor.  For example, without the FCKEditor on the page the most intensive task takes 5-6 seconds to finish, and this is constant across multiple times.  But when the editor is even on the page, the first try of that task takes the normal amount of time, but each successive time takes about 5 seconds longer than the previous one.  This persists throughout the session regardless of what I do on the website, until I close the window and open up a completely new session.

Has anyone used FCKEditor in a custom module before, or seen any problems similar to this?  I was thinking that perhaps the DotNetNuke version of it was highly customized to avoid this, but was unsure of any differences.  Is there something else that I can do to make the first attempt I had at adding it to my VS toolbox work, or are there some settings I'm missing that can make it not degrade performance so badly?

 

 

 
New Post
12/3/2007 8:20 AM
 

I tried a few more things with this, the main one being manipulating the ViewState to see if that would help speed things up at all.  I even went as far as clearing it after every major function the page performed, but it still suffered from the slowdown any time the FCKEditor was on the page. 

I'm beginning to think my initial attempt at adding the control is the way to go, but obviously I was going about it the wrong way.  Does anyone know how to get the control from DotNetNuke.HtmlEditor.FckHtmlEditorProvider.dll to work in Visual Studio?

 

 
New Post
12/4/2007 4:58 AM
 

You don't need to add the FCKEditor code seperately to your project, everything is already installed as part of the core framework,

There is a custom control provided with the core to allow you to use FCKEditor in your module.

First, register the control in your ascx file:

<%@ Register Src="~/controls/texteditor.ascx" TagName="texteditor" TagPrefix="Dnn" %>

Then create an instance of the editor:

<Dnn:texteditor ID="MyTextEditor" runat="server" Width="600px" Height="500px" ChooseMode="true" />

Hope that helps.

 
New Post
12/4/2007 11:30 AM
 

That's exactly what I was hoping I'd be able to do, thanks a bunch!

This part is more of a "nice to have" since it's working now with no noticeable performance degradation, but I'd defined a custom toolbar set while I was using the full version of FCKEditor.  I copied that to the fckconfig.js file in Providers\HtmlEditorProviders\Fck\FCKeditor and put (ToolbarSet="name of default") in the control, but it doesn't seem to recognize the set.  Is there any way to make that particular control use the alternate set, or would all instances of the editors have to be changed?

 
New Post
12/4/2007 2:55 PM
 

Scratch that...didn't realize that part was only set through the host options for each instance of the module, I was able to set it up correctly using that option.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Custom module problem with FCKEditorCustom module problem with FCKEditor


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