CuteEditor for .NET 6.2 Class Library

Editor Properties

The properties of the Editor class are listed below. For a complete list of Editor class members, see the Editor Members topic.

Public Instance Properties

AccessKey Gets or sets the access key (underlined letter) that allows you to quickly navigate to the Web server control.
ActiveTab Gets or sets which Tab is active (Edit/Code/View). Read/write.
AllowEditServerSideCode By default Cute Editor doesn't allow edit the Server side code. When this property is set to true, Cute Editor will allow edit the Server side code. (<%@ Page Language="C#" %> <%=MyString %> <asp:textbox id="textbox1" runat="server"></asp:textbox>)
AllowPasteHtml Specifies the manner in which the editor handles pasted text. If false, formatting is stripped when content is pasted into the editor. The default is true.
Attributes (inherited from WebControl) Gets the collection of arbitrary attributes (for rendering only) that do not correspond to properties on the control.
AutoConfigure Auto configures the toolbar with a set of buttons. Provides a mechanism for rapidly autoconfigures the toolbar with a set of predefined buttons. For example to enable every toolbar button and menu, do this: editor1.AutoConfigure(Config.Full). Note that this method will affect properties of the editor, so it is usually best to call it before any other property or method.
AutoParseClasses Specifies whether or not the Cute Editor should automatically parse the CSS classes from EditorWysiwygModeCss and populate all items into CssClass dropdown
BackColor Gets or sets the background color of the Web server control.
BaseHref Sets or retrieves the baseline URL on which relative links will be based.
BindingContainer (inherited from Control) 
BorderColor Specifies the color of the border around the outside of the Cute Editor
BorderStyle Specifies the style of border used around the outside of the Cute Editor
BorderWidth Specifies the width of the border around the outside of the Cute Editor
BottomTemplate Gets or sets the bottom template. This property allows developers add controls to the bottom of the Editor control.
BreakElement Specifies the behavior when the "enter" key is pressed in the editor The default is BreakElement.Div.
BrowserType Gets the browser type as detected by the HTTP headers sent by the browser.
ClientID Gets the server control identifier generated by ASP.NET.
CodeViewTemplateItemList The toolbar items used in the editor Code View going to this string. Example CodeViewTemplateItemList="Save,Print,Cut,Copy,Paste,Find,ToFullPage,FromFullPage,SelectAll
CodeViewToolBarID Get the id of the Cute Editor ToolBar
CodeViewToolControls Get A collection of the buttons/dropdowns in the Code View toolbar
ConfigurationPath Specifies the directory path which contains XML file (*.config). The XML file defines the toolbar appearance. Developers can use this property to specify a directory to store custom configuration files.
ContextMenuMode Determines the appearance and behavior of menus associated with the Context menu.
Controls (inherited from Control) Gets a ControlCollection object that represents the child controls for a specified server control in the UI hierarchy.
ControlStyle (inherited from WebControl) Gets the style of the Web server control. This property is used primarily by control developers.
ControlStyleCreated (inherited from WebControl) Gets a value indicating whether a Style object has been created for the ControlStyle property. This property is primarily used by control developers.
ConvertHTMLTagstoLowercase By default CuteEditor converts all HTML tags of the finally generated content to lower case. You can turn this feature off by setting this property to false.
CssClass (inherited from WebControl) Gets or sets the Cascading Style Sheet (CSS) class rendered by the Web server control on the client.
CultureType This property sets the behavior for determining how the current culture is chosen for the CuteEditor. Server uses the The System.Threading.Thread.CurrentThread.CurrentCulture.Name , Client uses language settings from the clients browser Page.Request.UserLanguages[0] , Custom: You can use the Editor.CustomCulture property to specify the culture in the current thread.
CustomCulture Specifies the culture name Only available when Editor.CultureType=CultureType.Custom
DisableAutoFormattingObsolete. By default Cute Editor will carefully analyze all of your HTML code and begin correcting all errors automatically. What you get is professionally presented code, properly reformatted and ready for use. If you want to preserve the formatting of existing HTML, you can turn this feature off by setting Editor.DisableAutoFormatting property to "true".
DisableClassList The class items in the CssClass dropdown needed to be disabled going to this string. Example DisableClassList="BreadCrumb, TopicMenu, Footer"
DisableItemList The toolbar items needed to be disabled going to this string. Example DisableItemList="Bold, New, Delete"
DNN_Arg DNN only
DOCTYPE Cute Editor allows you to edit a full HTML page, including <title>, <!DOCTYPE...> and some other options. You can use this property to specify the DOCTYPE (document type declaration) which will appear at the very top of every web page.
DownLevelColumns Gets or sets the columns property of the downlevel TEXTAREA
DownLevelRows Gets or sets the rows property of the downlevel TEXTAREA
EditCompleteDocument Specifies whether a complete HTML document is being edited.
EditorBodyClass Specifies the Class name that will be added to the body of the editor document.
EditorBodyId Specifies an Id name that will be added to the body of the editor document.
EditorBodyStyle The style to be applied to the Editor body.
EditorOnPaste Specifies the manner in which the editor handles pasted text.
EditorWysiwygModeCss Specifies the location of the style sheet that will be used by the editable area. Multiple Style Sheets are supported. Example EditorWysiwygModeCss="example.css,~/portal.css,/default.css"
EmptyAlternateText Specifies the manners in which the editor handles images without alternate text specified or images with empty alternate text.
EnableAntiSpamEmailEncoder Email contact links are an invaluable part of any web page. However, they are also vulnerable to a particular type of web robot known as the spam harvester or spambot. A spam harvester can read through the pages in your site and extract email addresses which are then added to bulk marketing databases. CuteEditor allows you reduce possible spam by 'disguising' a raw email address in an encoded ASCII form.. You can turn this feature off by setting this property to "false".
EnableBrowserContextMenu Specifies whether the browser context menu is enabled. Set this to false to disable the browser context menu.
EnableClientScript Whether to enable the client script based HTML editor. If false, the Cute Editor will render as a regular textarea field instead of a WYSIWYG editor.
EnableContextMenu Specifies whether the context menu is enabled.
Enabled Specifies whether the control is enabled. If it's disabled, the content is readonly.
EnableObjectResizing Specifies whether or not to allow the users resize an object winthin the Cute Editor. For example, if you want to prevent people from resizing images, table winthin the Cute Editor, you can set it to false.
EnableStripIframeTags Specifies whether to remove inject Iframe tags before writing the string into the db. When this property is set to true (the default) Cute Editor strips all iframe tags from the html to prevent iframe injection attack.
EnableStripLinkTagsCodeInjection Specifies whether to remove <link> tags which contain malicious, client-side executable code before writing the string into the db. When this property is set to true (the default) Cute Editor strips all <link> tags which contain malicious, client-side executable code from the html to prevent link tag injection attack.
EnableStripScriptTags Specifies whether to remove inject script before writing the string into the db. When this property is set to true (the default) Cute Editor strips all script elements and script contents from the html.
EnableStripStyleTagsCodeInjection Specifies whether to remove inject <Style> tags which contain malicious, client-side executable code before writing the string into the db. When this property is set to true (the default) Cute Editor strips all <Style> tags which contain malicious, client-side executable code from the html to prevent style tag injection attack.
EnableViewState (inherited from Control) Gets or sets a value indicating whether the server control persists its view state, and the view state of any child controls it contains, to the requesting client.
EncodeHiddenValue By default Cute Editor will encode the value in the Hidden field automatically. You can turn it off by setting this property to "false". If this property is set to false, ValidateRequest="false" in the page directive is required.
FilesPathObsolete. This property is obsoleted. To specify the path to editor files, please add the following key to the appSettings in your web.config. <add key="CuteEditorDefaultFilesPath" value="~/Editor" />
Focus Specifies whether the editor grabs focus when the page loads. If this property is set to true then the editor will take focus, if it is set to false it will not.
Font (inherited from WebControl) Gets the font properties associated with the Web server control.
ForeColor (inherited from WebControl) Gets or sets the foreground color (typically the color of the text) of the Web server control.
FrameID Get the id of the IFrame
FrameStyle Allow user to change the IFrame's Style
FullPage Specifies the FullPage state
Height Specifies the height of the Cute Editor control on the page.
HelpUrl Specifies the url when the help button click
HyperlinkTarget Specifies where the linked document will be opened when the user follows a link.
ID Gets or sets the programmatic identifier assigned to the Cute Editor control.
MaintainAspectRatioWhenDraggingImage If you do not want to preserve the aspect ratio when you drag and resize an image, you can set the MaintainAspectRatioWhenDraggingImage property to false. By default, MaintainAspectRatioWhenDraggingImage is set to true to enable the preservation of the aspect ratio.
MaxHTMLLength Gets or sets the maximum number of characters including the HTML tags allowed in the Cute Editor. Default is zero, indicating no maximum.
MaxTextLength Gets or sets the maximum number of characters excluding the HTML tags allowed in the Cute Editor. Default is zero, indicating no maximum.
NamingContainer (inherited from Control) Gets a reference to the server control's naming container, which creates a unique namespace for differentiating between server controls with the same ID property value.
Page (inherited from Control) Gets a reference to the Page instance that contains the server control.
Parent (inherited from Control) Gets a reference to the server control's parent control in the page control hierarchy.
PlainText Retrieves the CuteEditor HTML content in plain text format.
PlainTextWithLinefeeds Retrieves the CuteEditor HTML content in plain text format and replace carriage returns with the appropriate br and p tags for breaks.
PreviewModeCss Specifies the location of the style sheet that will be used by the preview window. Multiple Style Sheets are supported. Example PreviewModeCss="example.css,~/portal.css,/default.css"
PrintFullWebPage By default Cute Editor will print the content in the editing area only. When this property is set to true, Cute Editor will print the whole web page.
ReadOnly Specifies whether the content is readonly
RemoveServerNamesFromUrlObsolete. Please use URLType property.
RemoveTBODYTag By default Internet Explorer HTML parser automatically insert TBODY tag after any TABLE tag. When this property is set to true, CuteEditor strips out the TBODY tags.
RenderRichDropDown Specifies whether the dropdown render as rich style .
ResizeMode Gets or sets the way the editor is resized.
ResizeStep Gets or sets the resize step in pixels used when the user clicks on "+" or "-" to resize the editor.
RichEditingIsAvailable Whether to enable the client script based HTML editor. Returns a boolean value indicating whether the editor will provide rich-text editing. The decision should be based on both browser capabilities and on the page developer's choice. This property returns true if the end-user loads the page using Internet Explorer 5.5 or later running on Windows and the editor EnableClientScript property value is set to true.
SecurityPolicyFile Specifies the Security Policy File which contains a configurable set of rules called security policy.
ServerName Get the server name
Setting 
ShowBottomBar Specifies whether the Bottom Bar(Design, Html and Preview Mode tab) appear.
ShowCodeViewToolBar Specifies whether toolbars in the Cute Editor Code View are visible
ShowDecreaseButton Specifies whether the Decrease editing window button appear.
ShowEditMode Specifies whether the Edit Mode tab appear.
ShowEnlargeButton Specifies whether the Enlarge editing window button appear.
ShowGroupMenuImage Specifies whether the CuteEditor group menu start image and end image appear.
ShowHtmlMode Specifies whether the Html Mode tab appear.
ShowPreviewMode Specifies whether the Preview Mode tab appear.
ShowTagSelector Specifies whether quick tag selector toolbar appear.
ShowToolBar Specifies whether toolbars in the Cute Editor control are visible
ShowWordCount Specifies whether the Word Count toolbar appear.
Site (inherited from Control) Gets information about the Web site to which the server control belongs.
Style (inherited from WebControl) Gets a collection of text attributes that will be rendered as a style attribute on the outer tag of the Web server control.
StyleWithCSS This property is used for toggling the format of generated content. An example of the differences is that the "bold" command will generate <b> if the StyleWithCSS command is false and generate css style attribute (font-weight: bold) if the StyleWithCSS command is true.
TabIndex (inherited from WebControl) Gets or sets the tab index of the Web server control.
TabSpaces Gets or sets the number of spaces to be inserted when the user hits the "tab" key
TemplateItemList Gets or sets the template or layout to use for the toolbars.
TemplateSourceDirectory (inherited from Control) Gets the virtual directory of the Page or UserControl that contains the current server control.
TemplateUrl Specifies the url to load in the IFrame
Text This property provides access to the text within the editable area of the CuteEditor control. It can be used to set the text when the control is first displayed and also to read out the text when a form has been submitted.
TextAreaStyle Gets the style of the editor control when rendering as a Textarea.
ThemeType Sets the theme for how the toolbar is draw. You can create your custom skin or choose from predefined themes: Custom / Office2007 / Office2003 / Office2003_BlueTheme / Office2000 / OfficeXP /
ToggleBorder Specifies the ToggleBorder state. ToggleBorder is a handy function which allows you to see the borders without setting things to border = 1 or something like that in code. It's used for all HTML Tables, HTML Cells, Forms and Divs.
ToolBarID Get the id of the Cute Editor ToolBar
ToolControls Get A collection of the buttons/dropdowns in the Edit View toolbar
ToolTip Gets or sets the text displayed when the mouse pointer hovers over the Web server control.
UniqueID (inherited from Control) Gets the unique, hierarchically-qualified identifier for the server control.
URLType Specifies whether the URL should be converted to a site root relative path (/html/images/image1.gif) or an absolute path (http://www.mysite.com/images/image1.gif).
UseFontTags Font tags are now deprecated, meaning that they aren't used any more and will cause validation errors. Many legacy pages still contain style information in font tags. By default Cute Editor converts font tags to span tags. <font face="times" size="4" color="#ffffff">your text</font> would be replaced with <span style="font-family: times, serif; font-size: 110%; color:#ffffff">your text</span> If you still want to use font tags, you can set this property to true.
UseHTMLEntities By default Cute Editor maps most special characters to the equivalent HTML entity automatically. You can turn it off by setting this property to "false".
UseHttpHandlerCacheImagesObsolete. By default Cute Editor will use HttpHandler process the image files on the server side. You can turn this feature off by setting this property to false.
UsePhysicalFormattingTags These are two types of text formatting tags -- logical formatting tags ( <strong> and <em> ), which describe the information in the element, and physical formatting tags (<b> and <i>), which specify its appearance. By default CuteEditor use the logical formatting tags ( <strong> and <em> ). If you want to use the physical tags (<b> and <i>), you can set this property to true.
UseRelativeLinksObsolete. Please use URLType property.
UseSimpleAmpersand W3C recommend that all '&' in query strings be converted to &amp; This is the only way to get a piece of HTML validated. The reason is that & is the start of an HTML entity, such as &pound;

So this:
            
        <a href="page.aspx?var1=one&amp;va­r2=two">link</a>
is valid, whereas:
        <a href="page.aspx?var1=one&var2=t­wo">link</a>
isn't.
If you still want to use simple Ampersand in query strings, you can set this property to true. if you want to retrieve the CuteEditor HTML content in XHTML format, the 'UseSimpleAmpersand' property will be ignored.
UseStandardDialog If you want to use standard popup windows for all dialogs, set this property to true.
Visible (inherited from Control) Gets or sets a value that indicates whether a server control is rendered as UI on the page.
Width Specifies the width of the Cute Editor control on the page.
XHTML Retrieves the CuteEditor HTML content in XHTML format.

Protected Instance Properties

ChildControlsCreated (inherited from Control) Gets a value that indicates whether the server control's child controls have been created.
ContextObsolete.  
Events (inherited from Control) Gets a list of event handler delegates for the control. This property is read-only.
HasChildViewState (inherited from Control) Gets a value indicating whether the current server control's child controls have any saved view-state settings.
IsTrackingViewState (inherited from Control) Gets a value that indicates whether the server control is saving changes to its view state.
TagKey (inherited from WebControl) Gets the HtmlTextWriterTag value that corresponds to this Web server control. This property is used primarily by control developers.
TagName (inherited from WebControl) Gets the name of the control tag. This property is used primarily by control developers.
ViewState (inherited from Control) Gets a dictionary of state information that allows you to save and restore the view state of a server control across multiple requests for the same page.
ViewStateIgnoresCase (inherited from Control) Gets a value that indicates whether the StateBag object is case-insensitive.

See Also

Editor Class | CuteEditor Namespace