Click here to Skip to main content
12,300,379 members (29,368 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# ASP.NET
i want to use ajax toolkit HTMLEditro Control but when i face this problem and this is my code:
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor" TagPrefix="cc1" %>

and
<cc1:Editor ID="Editor1"  runat="server" />
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></asp:ToolkitScriptManager>
and this image is result : http://upload.tehran98.com/img1/5g84pbahop59d34dep4y.jpg
Posted 17-Apr-13 20:24pm
Edited 17-Apr-13 20:31pm
v5
Comments
CodeNinja-C# 18-Apr-13 4:08am
   
Hi,

It might be work,
Verify the outer table width and Height and set the editor width and height
RedSakura 18-Apr-13 14:30pm
   
i tried for that but it didnt work.
i switched on my other computer runing windows 8 and it was working correctly.
i donno how the its possible >.<
CodeNinja-C# 19-Apr-13 1:33am
   
Hi Red,
I don't know the solution for your problem but some one from code project community will help you.
my advice is try to create an empty web page and insert the editor into it and check that page in browser if it works fine, probably you need to recheck your page design.
if you resolve this bug with any other option please intimate me..
--SJ
Member61 18-Apr-13 6:16am
   
Mention height and width ...

1 solution

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

Solution 1

This is the code for the HTMLEditorExtender[^] which can be added to a textbox. You might want to try it out as an alternative solution.
<script>
        function onContentsChange() {
            alert('contents changed');
        }
    </script>
 
    <asp:TextBox runat="server"
        ID="txtBox1"
        TextMode="MultiLine"
        Columns="50"
        Rows="10"
        Text="Hello <b>world!</b>" />
 
    <ajaxToolkit:HtmlEditorExtender
        ID="htmlEditorExtender1"
        TargetControlID="txtBox1"
        OnClientChange="onContentsChange"
        runat="server" >
    </ajaxToolkit:HtmlEditorExtender>

cheers,
Marco
  Permalink  

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
Web01 | 2.8.160525.2 | Last Updated 22 Apr 2013
Copyright © CodeProject, 1999-2016
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