Class TextEditor
TextEditor is a user control that provides a wrapper for the HtmlEditor providers.
Inheritance
Namespace: DotNetNuke.UI.UserControls
Assembly: DotNetNuke.dll
Syntax
public class TextEditor : UserControl
Constructors
| Improve this Doc View SourceTextEditor()
Initializes a new instance of the TextEditor class.
Declaration
public TextEditor()
Fields
| Improve this Doc View SourceDivBasicRender
TextEditor is a user control that provides a wrapper for the HtmlEditor providers.
Declaration
protected HtmlGenericControl DivBasicRender
Field Value
Type | Description |
---|---|
HtmlGenericControl |
DivBasicTextBox
TextEditor is a user control that provides a wrapper for the HtmlEditor providers.
Declaration
protected HtmlGenericControl DivBasicTextBox
Field Value
Type | Description |
---|---|
HtmlGenericControl |
DivRichTextBox
TextEditor is a user control that provides a wrapper for the HtmlEditor providers.
Declaration
protected HtmlGenericControl DivRichTextBox
Field Value
Type | Description |
---|---|
HtmlGenericControl |
OptRender
TextEditor is a user control that provides a wrapper for the HtmlEditor providers.
Declaration
protected RadioButtonList OptRender
Field Value
Type | Description |
---|---|
RadioButtonList |
OptView
TextEditor is a user control that provides a wrapper for the HtmlEditor providers.
Declaration
protected RadioButtonList OptView
Field Value
Type | Description |
---|---|
RadioButtonList |
PanelTextEditor
TextEditor is a user control that provides a wrapper for the HtmlEditor providers.
Declaration
protected Panel PanelTextEditor
Field Value
Type | Description |
---|---|
Panel |
PanelView
TextEditor is a user control that provides a wrapper for the HtmlEditor providers.
Declaration
protected Panel PanelView
Field Value
Type | Description |
---|---|
Panel |
PlcEditor
TextEditor is a user control that provides a wrapper for the HtmlEditor providers.
Declaration
protected PlaceHolder PlcEditor
Field Value
Type | Description |
---|---|
PlaceHolder |
TxtDesktopHTML
TextEditor is a user control that provides a wrapper for the HtmlEditor providers.
Declaration
protected TextBox TxtDesktopHTML
Field Value
Type | Description |
---|---|
TextBox |
Properties
| Improve this Doc View SourceBasicTextEditor
Gets allows public access of the BasicTextEditor.
Declaration
public TextBox BasicTextEditor { get; }
Property Value
Type | Description |
---|---|
TextBox |
ChooseMode
Gets or sets a value indicating whether enables/Disables the option to allow the user to select between Rich/Basic Mode, Default is true.
Declaration
public bool ChooseMode { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ChooseRender
Gets or sets a value indicating whether determines whether or not the Text/Html button is rendered for Basic mode, Default is True.
Declaration
public bool ChooseRender { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
DefaultMode
Gets or sets /Sets the Default mode of the control, either "RICH" or "BASIC", Defaults to Rich.
Declaration
public string DefaultMode { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Height
Gets or sets /Sets the Height of the control.
Declaration
public Unit Height { get; set; }
Property Value
Type | Description |
---|---|
Unit |
HtmlEncode
Gets or sets a value indicating whether turns on HtmlEncoding of text. If this option is on the control will assume, it is being passed encoded text and will decode.
Declaration
public bool HtmlEncode { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsRichEditorAvailable
TextEditor is a user control that provides a wrapper for the HtmlEditor providers.
Declaration
public bool IsRichEditorAvailable { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
LocalResourceFile
TextEditor is a user control that provides a wrapper for the HtmlEditor providers.
Declaration
public string LocalResourceFile { get; }
Property Value
Type | Description |
---|---|
System.String |
Mode
Gets or sets the current mode of the control "RICH", "BASIC".
Declaration
public string Mode { get; set; }
Property Value
Type | Description |
---|---|
System.String |
OptViewClientId
TextEditor is a user control that provides a wrapper for the HtmlEditor providers.
Declaration
public string OptViewClientId { get; }
Property Value
Type | Description |
---|---|
System.String |
RichText
Gets allows public access ot the HtmlEditorProvider.
Declaration
public HtmlEditorProvider RichText { get; }
Property Value
Type | Description |
---|---|
HtmlEditorProvider |
Text
Gets or sets /Sets the Text of the control.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TextRenderMode
Gets or sets the render mode for Basic mode. {Raw | HTML | Text}.
Declaration
public string TextRenderMode { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Width
Gets or sets /Sets the Width of the control.
Declaration
public Unit Width { get; set; }
Property Value
Type | Description |
---|---|
Unit |
Methods
| Improve this Doc View SourceChangeMode(String)
TextEditor is a user control that provides a wrapper for the HtmlEditor providers.
Declaration
public void ChangeMode(string mode)
Parameters
Type | Name | Description |
---|---|---|
System.String | mode |
ChangeTextRenderMode(String)
TextEditor is a user control that provides a wrapper for the HtmlEditor providers.
Declaration
public void ChangeTextRenderMode(string textRenderMode)
Parameters
Type | Name | Description |
---|---|---|
System.String | textRenderMode |
OnInit(EventArgs)
TextEditor is a user control that provides a wrapper for the HtmlEditor providers.
Declaration
protected override void OnInit(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
EventArgs | e |
OnLoad(EventArgs)
Page_Load runs when the control is loaded.
Declaration
protected override void OnLoad(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
EventArgs | e |
OptRenderSelectedIndexChanged(Object, EventArgs)
optRender_SelectedIndexChanged runs when Basic Text Box mode is changed.
Declaration
protected void OptRenderSelectedIndexChanged(object sender, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | |
EventArgs | e |
OptViewSelectedIndexChanged(Object, EventArgs)
optView_SelectedIndexChanged runs when Editor Mode is changed.
Declaration
protected void OptViewSelectedIndexChanged(object sender, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | |
EventArgs | e |