:: Professional ::
 
You are here: Blog
 

Hilbert Solutions, LLC Latest Dotnetnuke Modules...

Advanced News Ticker        Constant Contact Sign Up

 

Blog
Feb5

Written by:slhilbert
2/5/2009 11:52 AM RssIcon

I am not sure this is the best way to utilize the Rich Text Editor in your Dotnetnuke modules, but it is a way that has certainly worked for me in the past.  

In your .ascx file add the following line:

 

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

 

Then you can use the editor in your module like so:

<dnn:TextEditor ID="txtDetails" runat="server"
Width="450" Height="300" />

 

You have to love how simple coding can be sometimes.

 

 

4 comment(s) so far...


Gravatar

Re: Using the Dotnetnuke Text Editor in your Modules

Yep! You got it. You gotta love how much work DNN takes out of development. We in turn get to worry about the important stuff!

Thanks for posting this.

By Will Strohl on  2/5/2009 1:03 PM
Gravatar

Re: Using the Dotnetnuke Text Editor in your Modules

Figured this out in the Fall of 2007, just got around posting it today. Life....

By Stuart on  2/5/2009 1:06 PM
Gravatar

Re: Using the Dotnetnuke Text Editor in your Modules

i figured that out but i am having a problem accessing the Text property of this control in my ascx.cs file. i can see all the properties but not the Text Property.. any ideas?
~cc

By chalama on  5/13/2009 7:10 AM
Gravatar

Re: Using the Dotnetnuke Text Editor in your Modules

In the example above it would be txtDetails.text

By slhilbert on  5/13/2009 7:45 AM

Your name:
Gravatar Preview
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Security Code
Enter the code shown above in the box below
Add Comment  Cancel 
Search Blog
Blog Archive
Terms Of Use| Privacy Statement Hilbert Solutions, LLC Since 2007