Click here to Skip to main content
15,914,594 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
How to customise ajax html editor...I tried the following code and its not working...Base class inheriting error for the customised control ....Its working in a new project....Followed this link
http://www.asp.net/web-forms/tutorials/ajax-control-toolkit/htmleditor/how-do-i-use-the-html-editor-control-cs ..But somehow control not inheriting correctly..
Posted
Comments
Sandeep Mewara 5-Feb-13 12:54pm    
So you say what you tried works in a new project but does not work in your other existing project? If so, see what wrong you are doing in your project. Further, it would help you if you share the error that you get.

1 solution

 
Share this answer
 
Comments
Korathu 2 5-Feb-13 15:21pm    
I tried the above..But unable to get the tag properly in my project..Either assembly error or unknown specified tag..
Under App_Code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text;
using AjaxControlToolkit.HTMLEditor;
using AjaxControlToolkit.HTMLEditor.ToolbarButton;
namespace CustomControls
{
public class CustomEditor : Editor
{
protected override void FillTopToolbar()
{
TopToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.Bold());
TopToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.Italic());
}

protected override void FillBottomToolbar()
{
BottomToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.DesignMode());
BottomToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.PreviewMode());
}
}
}


Then under the aspx page of content page
<%@ Register Namespace="CustomControls" TagPrefix="HTMLEditor" Assembly="CustomControls"%>
<HTMLEditor:CustomEditor runat="server" Height="500px" Width="100%" ID="editor" AutoFocus="true" ></HTMLEditor:CustomEditor>
I am not getting the tag source code ....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900