Click here to Skip to main content
15,884,237 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to use ajax toolkit HTMLEditro Control but when i face this problem and this is my code:
C#
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor" TagPrefix="cc1" %>


and
C#
<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
Updated 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
Rockstar_ 18-Apr-13 6:16am    
Mention height and width ...

1 solution

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.
XML
<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
 
Share this answer
 

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