Click here to Skip to main content
12,696,920 members (32,122 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: Ajax
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 5-Feb-13 7:34am
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

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 5 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100