The Text Editor control provides you a method to accept Rich/Text input using the currently configured Text Editor provider for the DotNetNuke Installation.
By using the Text Editor control if the provider in use is updated in the web.config all modules reference the text editor control will be updated to use the new provider.
Usage
To use the control within a module control there is a two step process, first register the control
<%@ Register TagPrefix="dnn" TagName="TextEditor" Src="~/controls/TextEditor.ascx"%>
Then place the control where desired
<dnn:TextEditor ID="ControlNameHere" runat="server" Height="200" Width="500" />
Properties
There are a number of properties available for the control, the following table shows a highlight of the most commonly used ones.
Common properties Property | Description/Note |
Text | Get/set text content. |
Width | The size of the control, for the best results 100% is a good choice. |
Height | The size of the control, for the best results 500px or larger is recommended |
HtmlEncode | If set to true accessing the "Text" property will provide HtmlEncoded HTML rather than raw HTML |