标签: htmleditorextender

AjaxControlToolKit HTMLEditorExtender在添加链接时将锚标记添加为普通文本

我无法为这个主题写好标题,因为我的问题有点奇怪.我在我的网站上使用AjaxControlToolkit HTMLEditorExtender发送HTML格式的电子邮件.其他所有功能,如粗体,斜体,下划线等都可以正常工作,但是当我添加一个链接时,它会显示如下的HTML代码:

在此输入图像描述

正如您所见,BOLD正在运行,但锚标签以HTML代码格式显示.

扩展程序代码和文本框:

<asp:TextBox ID="TextBox2" runat="server" Height="376px" 
                TextMode="MultiLine" Width="795px"></asp:TextBox>
            <asp2:HtmlEditorExtender ID="TextBox2_HtmlEditorExtender" 
    runat="server" Enabled="True" TargetControlID="TextBox2">
</asp2:HtmlEditorExtender>
Run Code Online (Sandbox Code Playgroud)

任何人都可以告诉我为什么会这样吗?这是扩展器的一些错误吗?

c# asp.net ajax ajaxcontroltoolkit htmleditorextender

7
推荐指数
1
解决办法
1892
查看次数

按Enter键时,使用HTMLEditorExtender的TextBox不会插入新行

HTMLEditorExtender在我的网站上使用AjaxToolKit的控件.标记如下:

<asp:TextBox ID="TextBox2" runat="server" 
        Font-Names="'lucida grande',tahoma,verdana,arial,sans-serif" Height="100%" OnTextChanged="TextBox2_TextChanged" 
        style="margin-bottom: 26px; font-size: small;" Width="90%"></asp:TextBox>

<asp:HtmlEditorExtender ID="TextBox2_HtmlEditorExtender" runat="server" 
        Enabled="True" TargetControlID="TextBox2">
    <Toolbar>
        <asp:Undo />
        <asp:Redo />
        <asp:Bold />
        <asp:Italic />
        <asp:Underline />
        <asp:StrikeThrough />
        <asp:Subscript />
        <asp:Superscript />
        <asp:InsertOrderedList />
        <asp:InsertUnorderedList />
        <asp:RemoveFormat />
        <asp:SelectAll />
        <asp:UnSelect />
        <asp:Delete />
        <asp:Cut />
        <asp:Copy />
        <asp:Paste />
        <asp:Indent />
        <asp:Outdent />
        <asp:FontNameSelector />
    </Toolbar>
</asp:HtmlEditorExtender>
Run Code Online (Sandbox Code Playgroud)

运行应用程序,并在有焦点时按Enter键TextBox2,不会插入新行; 相反,TextBox2失去了焦点.

这不会发生,除非HTMLEditorExtender连接到TextBox2.

更多细节

我在本地IIS中运行该应用程序.该网站已上线但该功能尚未在主网站上推出.我正在使用ASP.NET …

c# asp.net ajax ajaxcontroltoolkit htmleditorextender

6
推荐指数
1
解决办法
3353
查看次数