CuteEditor for ASP 6.6 Class Library

Editor Members

Editor overview

Public Instance Constructors

Editor Constructor Editor Contructor

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 Specify whether or not the Cute Editor should automagically parse the CSS classes from EditorWysiwygModeCss and populate all items into CssClass dropdown
BaseHref Sets or retrieves the baseline URL on which relative links will be based.
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.
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
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.
ConvertHTMLTagstoLowercase  
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="Custom"
DisableAutoFormatting 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"
DOCTYPE Cute Editor 4.0 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"
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.
EnableContextMenuEditing Specify whether or not to enable the Edit functions include Undo, Redo, Cut, Copy, Paste, Delete, SelectAll in the context menu.
EnableContextMenuFormat Specify whether or not to enable the Format functions include Bold, Italic, Underline, StrikeThrough, ForeColor, BackColor in the context menu.
EnableContextMenuInsert Specify whether or not to enable the Insert functions include InsertForm, ImageGalleryByBrowsing, InsertImage, InsertFlash, InsertMedia, InsertDocument, InsertTemplate, InsertTable, InsertHorizontalRule in the context menu.
EnableContextMenuInsertAdvanced Specify whether or not to enable the Advanced option in the context menu.
EnableContextMenuInsertFiles Specify whether or not to enable the Insert functions include InsertForm, ImageGalleryByBrowsing, InsertImage, InsertFlash, InsertMedia, InsertDocument, InsertTemplate, InsertTable, InsertHorizontalRule in the context menu.
EnableContextMenuInsertForms Specify whether or not to enable the Insert Form functions include InsertForm,InsertInputText,InsertTextBox,InsertRadioBox,InsertCheckBox,InsertListBox,InsertDropDown, InsertInputImage,InsertInputSubmit,InsertInputReset,InsertInputReset,InsertInputReset,insertinputpassword,insertinputhidden,InsertInputButton in the context menu.
EnableContextMenuRelative Specify whether or not to enable the Relative option in the context menu.
EnableContextMenuTags Specify whether or not to enable the Tags option in the context menu.
EnableContextMenuVerbs Specify whether or not to enable the Verbs option in the context menu.
EnableStripScriptTags Specifies whether to remove inject script before write the string into the db.
FilesPath The path to editor files. Please use the GetFilesPath() to get this value
FocusOnLoad 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.
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.
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.
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
RemoveServerNamesFromUrl By default Internet Explorer converts all URLs in hyperlinks (anchor tags) and images (img tags) to absolute URLs. When this property is set to true (the default), CuteEditor strips out the local server name from all A and IMG tags if the hostname in the URL matches the current hostname.
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.
SecurityPolicyFile Specify the Security Policy File which contains a configurable set of rules called security policy.
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.
ShowToolBar Specifies whether toolbars in the Cute Editor control are visible
TabIndex Gets or sets the tab index of the Web server control.
TemplateItemList Gets or sets the template or layout to use for the toolbars.
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.
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
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".
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.
UseRelativeLinks By default Internet Explorer converts all URLs in hyperlinks (anchor tags) absolute URLs. When this property is set to true, Cute Editor should strip the absolute link paths.
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:
            <   br>    <ahref="page.aspx?var1=one&amp;va­r2=two">link</a> 
is valid, whereas: < br>    <ahref="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.
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.
XHTMLOutput Retrieves the CuteEditor HTML content in XHTML format.

Public Instance Methods

Draw Render the Editor on the client.
GetString This function returns what the Draw function used to write to the response buffer as a string.
LoadHtml Loads the contents of a HTML file into the CuteEditor control.
SaveFile Saves the contents of the Cute Editor to a file.

See Also

Editor Class | CuteEditor Namespace