Feb5Written by:slhilbert
2/5/2009 11:52 AM 
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...
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
|
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
|
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
|
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
|