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...Getting StartedGetting StartedHow to add / use FCKEditor in my own custom module ?How to add / use FCKEditor in my own custom module ?
Previous
 
Next
New Post
4/10/2010 2:29 AM
 

Hi all,

Appreciate some guidance on how to add the FCK Editor user control to my own control

and then how to  fill / save from a local template / text file ?

I can't seem to figure out how to add the control to my page ( where is it )

Thanks, Paul

 
New Post
4/10/2010 8:35 AM
 

To add the rich text editor (default is FCKEditor in Community Edition) to your module, include the following reference at the top of your .ascx control:

<%@ Register TagPrefix="dnn" TagName="TextEditor" Src="~/controls/TextEditor.ascx"%>

then, in your .ascx control's markup, place the control as follows:

<dnn:texteditor id="teContent" width="100%" height="400" runat="server"></dnn:texteditor>

Then, in your codebehind you can access the properties of the text editor as follows:

To load content into the editor: teContent.Text = myTextString

To retrieve content after editing: myEditedTextString = teContent.Text

One good feature of open source code such as DotNetNuke is that you can examine the source code of the framework itself and of core and other free modules in the DotNetNuke Forge to see how techniques such as this can be done.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
4/10/2010 12:14 PM
 

Hi William,

Thank you so much !  I tried to Google Search for an example but couldn't find one.

Yes, I should  downloadethe source for  say the Events Module to see how the Editor is used !

Ok, now to see if I can maintain create some Template  text files with the HTML in the Editor.

Thanks again, Paul Chu

www.socaldug.org  /  http://paulchu.wordpress.com

 

 

 

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedHow to add / use FCKEditor in my own custom module ?How to add / use FCKEditor in my own custom module ?


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