No problem.
Here are the steps:
1. Create a new property:
/// <summary>
/// Specifies whether the Edit Mode tab appear.
/// </summary>
[Category("Appearance"),DefaultValue(true)]
public bool ShowEditMode
{
get
{
object savedState = this.ViewState["ShowEditMode"];
return (savedState == null) ? true : (bool) savedState;
}
set
{
ViewState["ShowEditMode"] = value;
}
}
2. Find the RenderTabMode function.
And change the following code
writer.AddAttribute("Command","TabEdit");
writer.AddAttribute(HtmlTextWriterAttribute.Class,"CuteEditorButton");
writer.AddAttribute(HtmlTextWriterAttribute.Src,ThemePath+"Images/design.gif",true);
writer.AddAttribute(HtmlTextWriterAttribute.Title,"[[Normal]]",true);
writer.RenderBeginTag(HtmlTextWriterTag.Img);
writer.RenderEndTag();
to
if(editor.ShowEditMode)
{
writer.AddAttribute("Command","TabEdit");
writer.AddAttribute(HtmlTextWriterAttribute.Class,"CuteEditorButton");
writer.AddAttribute(HtmlTextWriterAttribute.Src,ThemePath+"Images/design.gif",true);
writer.AddAttribute(HtmlTextWriterAttribute.Title,"[[Normal]]",true);
writer.RenderBeginTag(HtmlTextWriterTag.Img);
writer.RenderEndTag();
}
asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
asp wysiwyg html editor: http://cutesoft.net/ASP
asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
Live Support: http://cutesoft.net/live-support/default.aspx