CuteEditor for .NET 6.0 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.
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 Specify 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.
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
BreakElement Specify 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.
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.
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 Specify 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 Specify whether a complete HTML document is being edited.
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 Specify 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 Specify 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 Specify whether the context menu is enabled. The context menu is not available in IE5.
Enabled Specify whether the control is enabled. If it's disabled, the content is readonly.
EnableObjectResizing Specify 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.
EnableStripScriptTags Specifies whether to remove inject script before write 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.
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.
FrameID Get the id of the IFrame
FrameStyle Allow user to change the IFrame's Style
FullPage Specify the FullPage state
Height Specifies the height of the Cute Editor control on the page.
HelpUrl Specify the url when the help button click
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.
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.
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 Specify 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 Specify whether the dropdown render as rich style . IE5 always use simple select element.
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 Specify 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.
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
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.
TemplateUrl Specify 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 / Office2000 / OfficeXP / Office2003 / Office2003_BlueTheme
ToggleBorder Specify the ToggleBorder state
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.
URLType Specify 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".
UseHttpHandlerCacheImages 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.
Width Specifies the width of the Cute Editor control on the page.
XHTML Retrieves the CuteEditor HTML content in XHTML format.

See Also

Editor Class | CuteEditor Namespace