/bin/uEditor.dll /uEditor/uEditor.htm /uEditor/uDialogs/.. /uEditor/images/..
<%@Register TagPrefix="uEditor" Namespace="EFW.Controls.Web" Assembly="uEditor" %>
/bin/uEditor.dll /uEditor/uBlank.htm /uEditor/uDialogs/.. /uEditor/images/.. /example/yourWebForm.aspx /example/yourWebForm.aspx.cs
<%@ Register TagPrefix="uEditor" Namespace="EFW.Controls.Web" Assembly="uEditor" %> <html> <body> <form id="Form1",runat="server"> <uEditor:uEditor id="uEditor1" FormName="Form1",IconPath="../uEditor/uImages",DialogsPath="../uEditor/uDialogs" ,BlankSRC="../uEditor/uBlank.htm",runat="Server"><uEditor:uEditor> </form> </body> </html>
1.MenuBarModes property
The default way to configure Menubars is to use the propery MenuBarModes.
uEditor supports 3 menubar mode: FullMenu, Standard and none. Default is FullMenu
FullMenu has all the menu items:¡°Font¡±, ¡°Size¡±, ¡°Font color¡±, ¡°Bold¡±, ¡°Italics¡±, ¡°Underline¡±, ¡°Align left¡±, ¡°Align center¡±, ¡°Align right¡±, ¡°Numbered list¡±, ¡°Bullets¡±, ¡°Increase indent¡±, ¡°Decrease indent¡±."Cut","Copy","Paste","Undo","Redo","Insert table","Insert image", "Create HyperLink","Insert TextBox","Toggle Table GuideLines","HighLight","StrikeThrough","Superscript","Subscript","Insert Horizital Rule
Standard: has the following menus: ¡°Font¡±, ¡°Size¡±, ¡°Font color¡±, ¡°Bold¡±, ¡°Italics¡±, ¡°Underline¡±, ¡°Align left¡±, ¡°Align center¡±, ¡°Align right¡±, ¡°Numbered list¡±, ¡°Bullets¡±, ¡°Increase indent¡±, ¡°Decrease indent¡±.
None:not any menubar.it supports custom define.
Below is an example of Standard mode
<%@ Register TagPrefix="uEditor" Namespace="EFW.Controls.Web" Assembly="uEditor" %> <html> <body> <form id="Form1",runat="server"> <uEditor:uEditor id="uEditor1" FormName="Form1",IconPath="..uEditor/uImages",DialogsPath="../uEditor/uDialogs" ,BlankSRC="../uEditor/uBlank.htm",MenuBarModes="Standard" runat="Server"><uEditor:uEditor> </form> </body> </html>
2.Custom define In Page_Load Code
<%@ Register TagPrefix="uEditor" Namespace="EFW.Controls.Web" Assembly="uEditor" %> <html> <body> <form id="Form1",runat="server"> <uEditor:uEditor id="uEditor1" FormName="Form1",IconPath="..uEditor/uImages",DialogsPath="../uEditor/uDialogs" ,BlankSRC="../uEditor/uBlank.htm",MenuBarModes="None" runat="Server"><uEditor:uEditor> </form> </body> </html>
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim MenubarRelations As New EFW.Controls.Web.MenubarRelations(Me.UEditor1) Dim MenuBarItems As New EFW.Controls.Web.MenubarItems(Me.UEditor1) Dim CustomMenubar As New EFW.Controls.Web.uEditor.CustomMenubar Me.UEditor1.MenuBarMode = EFW.Controls.Web.uEditor.MenuBarModes.None CustomMenubar.AddItem(MenubarRelations.BeginOfMenuBar) CustomMenubar.AddItem(MenubarRelations.MenuBarGrabber) CustomMenubar.AddItem(MenuBarItems.FontDropDownList) CustomMenubar.AddItem(MenuBarItems.Spacer) CustomMenubar.AddItem(MenuBarItems.FontSizeDropDownList) CustomMenubar.AddItem(MenuBarItems.Spacer) CustomMenubar.AddItem(MenuBarItems.FontStyleDropDownList) CustomMenubar.AddItem(MenuBarItems.ItemSeperator) CustomMenubar.AddItem(MenuBarItems.Bold) CustomMenubar.AddItem(MenuBarItems.Italics) CustomMenubar.AddItem(MenuBarItems.Underline) CustomMenubar.AddItem(MenuBarItems.StrikeThrough) CustomMenubar.AddItem(MenuBarItems.ItemSeperator) CustomMenubar.AddItem(MenuBarItems.CustomMenu(" alert('You are clicking the menubar button that you custom!');", _ "custom menubar button function created at runtime", Me.UEditor1.IconPath + _ "/menu_test_button.gif")) CustomMenubar.AddItem(MenubarRelations.EndOfMenuBar) MenubarRelations = Nothing MenuBarItems = Nothing CustomMenubar = Nothing End Sub
uEditor Configuration
uEditor properties explained
TextUse this property to get or set uEditor'text
ReadOnlyUse this property to set uEditor to only show content
DisableuEditorUse this property to determine if edit textarea should be disabled.
TabIndexOverRidesOverrides base's tab index property
ButtonHeightThe height of button images.
HeightUse this property to set the height the edit area in pixel.
WidthUse this property to set the width the edit area in pixels only).
MenubarColorUse this property to set the background color of the menubar browsers.
AllowHtmlEditUse this property to control if HTML edit is allowed.
MenubarItemOverUser this property to set the background color of the menubar items on mouseover .
MenubarItemOverBorderUse this property to set the background color of the menubar items on mouseover.
WorkModeUse this property to set the init WorkMode
HasHead"Use this property to set if need to work with head tag of HTML.
Installation - This covers installing uEditor files to your web application.
Base Configuration - This covers setting uEditor base propertys to make uEditor to work.
MenuBar Configuration - This covers adding buttons and dropdownlists to uEditor on your ASPX pages.
uEditor Configuration - This covers other uEditor properties