【问题标题】:IE 8 issue with ajax html editor extender带有 ajax html 编辑器扩展器的 IE 8 问题
【发布时间】:2013-07-23 09:29:35
【问题描述】:
Test Color <font color="&#x23;ffcc99">This is Color</font> --> Google Chrome  
Test Color &lt;FONT color=#ffcc99&gt;This is Color -- > IE 8

当我使用 ajax html 编辑器扩展器保存文本并在 google chrome 中更改字体颜色时,它可以正常工作,但是当我在 IE8 中执行相同操作时,文本会更改为上面提到的不同格式,这不起作用。 我该如何解决?

【问题讨论】:

    标签: asp.net ajaxcontroltoolkit


    【解决方案1】:

    这个论坛帖子帮助了我:http://forums.asp.net/t/1751476.aspx

    当你读取或写入 html 时,只需使用 Server.HtmlDecode(无论你的 html 是什么);

    此外,在回发时,我必须这样做:

    htmlEditor.Text = Server.HtmlDecode(htmlEditor.Text);
    

    【讨论】:

      猜你喜欢
      • 2023-04-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-10-11
      • 1970-01-01
      相关资源
      最近更新 更多