ajax ajax工具包HTMLEditor的问题 [英] Problem with ajax ajax toolkit HTMLEditor

查看:116
本文介绍了ajax ajax工具包HTMLEditor的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用ajax工具包HTMLEditro Control但是当我遇到这个问题时,这是我的代码:

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>



,这张图片的结果是:http://upload.tehran98.com/img1/5g84pbahop59d34dep4y.jpg


and this image is result : http://upload.tehran98.com/img1/5g84pbahop59d34dep4y.jpg

推荐答案

这是 HTMLEditorExtender 的代码[ ^ ]可以添加到文本框中。您可能希望尝试将其作为替代解决方案。

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>





欢呼,

Marco



cheers,
Marco


这篇关于ajax ajax工具包HTMLEditor的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆