When I use the htmlextender in a page, I often try to paste html from wikepedia or other webpages into it. So I select a portion of those webpages, and do Edit/Copy, and then I paste into the htmlextender. Other times I copy and paste from emails that I get (I use Windows Live Mail). I find that in some cases, pictures do get transferred. Other times, there is just a blank frame where the picture is supposed to be. Does anyone know why this happens?
Internet Explorer seems to block pictures completely (in the extender).
Thanks.
Comments: Try selecting the first part of: http://en.wikipedia.org/wiki/Air_Supply The picture should be part of the selection. Then paste it into an html extender. I used Google Chrome as both the source and the destination of the copy/paste. The web.config says that I am using: ``` <sanitizer defaultProvider="HtmlAgilityPackSanitizerProvider"> <providers> <add name="HtmlAgilityPackSanitizerProvider" type="AjaxControlToolkit.Sanitizer.HtmlAgilityPackSanitizerProvider"></add> </providers> </sanitizer> ``` If you want a copy of the page, I can create a public version of it, but I think you can duplicate it simply by using this: ``` <%@ Page Language="VB" AutoEventWireup="false" CodeFile="pastehtml.aspx.vb" Inherits="zOwner_pastehtml" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <link href='/Styles/common.css' rel="stylesheet" type="text/css" /> </head> <body> <form id="form1" runat="server"> <div> <ajaxToolkit:ToolkitScriptManager ID="tsm" runat="server"></ajaxToolkit:ToolkitScriptManager> <center> <table id="tablehtml" runat="server"> <tr> <td style="text-align:right">Width (in pixels)</td> <td><asp:TextBox ID="TextBoxWidthPixels" runat="server" Width="67px"></asp:TextBox></td> </tr> <tr><td style="text-align:right">Height (in pixels)</td> <td><asp:TextBox ID="TextBoxHeightPixels" runat="server" Width="67px"></asp:TextBox></td> </tr> </table> <table style="width:600px"><tr><td style="text-align:justify"> <asp:Label ID="Labelcontents" runat="server" Text="Enter (or paste) the formatted (html) text itself below. Not all valid html will be accepted, unfortunately. We are not yet sure why." SkinID="ordinarylabel" BackColor="white"></asp:Label> </td></tr></table> <br /> <table><tr><td style="text-align:left"> <asp:TextBox ID="TextBoxContents" runat="server" TextMode="MultiLine" Height="500px" Width="900px" ></asp:TextBox> <ajaxToolkit:HtmlEditorExtender ID="HtmlEditorExtender1" EnableSanitization="false" TargetControlID="TextBoxContents" DisplaySourceTab="true" runat="server"> </ajaxToolkit:HtmlEditorExtender> </td></tr></table> <asp:Button ID="ButtonSubmit" runat="server" Text="Submit"></asp:Button> <br /> <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="red" ShowMessageBox="true"></asp:ValidationSummary> </center> </div> </form> </body> </html> ``` Thanks for any help on this. It should work, In fact it used to work - perhaps Chrome has revised its security? I still can paste pictures from my email program.
Internet Explorer seems to block pictures completely (in the extender).
Thanks.
Comments: Try selecting the first part of: http://en.wikipedia.org/wiki/Air_Supply The picture should be part of the selection. Then paste it into an html extender. I used Google Chrome as both the source and the destination of the copy/paste. The web.config says that I am using: ``` <sanitizer defaultProvider="HtmlAgilityPackSanitizerProvider"> <providers> <add name="HtmlAgilityPackSanitizerProvider" type="AjaxControlToolkit.Sanitizer.HtmlAgilityPackSanitizerProvider"></add> </providers> </sanitizer> ``` If you want a copy of the page, I can create a public version of it, but I think you can duplicate it simply by using this: ``` <%@ Page Language="VB" AutoEventWireup="false" CodeFile="pastehtml.aspx.vb" Inherits="zOwner_pastehtml" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <link href='/Styles/common.css' rel="stylesheet" type="text/css" /> </head> <body> <form id="form1" runat="server"> <div> <ajaxToolkit:ToolkitScriptManager ID="tsm" runat="server"></ajaxToolkit:ToolkitScriptManager> <center> <table id="tablehtml" runat="server"> <tr> <td style="text-align:right">Width (in pixels)</td> <td><asp:TextBox ID="TextBoxWidthPixels" runat="server" Width="67px"></asp:TextBox></td> </tr> <tr><td style="text-align:right">Height (in pixels)</td> <td><asp:TextBox ID="TextBoxHeightPixels" runat="server" Width="67px"></asp:TextBox></td> </tr> </table> <table style="width:600px"><tr><td style="text-align:justify"> <asp:Label ID="Labelcontents" runat="server" Text="Enter (or paste) the formatted (html) text itself below. Not all valid html will be accepted, unfortunately. We are not yet sure why." SkinID="ordinarylabel" BackColor="white"></asp:Label> </td></tr></table> <br /> <table><tr><td style="text-align:left"> <asp:TextBox ID="TextBoxContents" runat="server" TextMode="MultiLine" Height="500px" Width="900px" ></asp:TextBox> <ajaxToolkit:HtmlEditorExtender ID="HtmlEditorExtender1" EnableSanitization="false" TargetControlID="TextBoxContents" DisplaySourceTab="true" runat="server"> </ajaxToolkit:HtmlEditorExtender> </td></tr></table> <asp:Button ID="ButtonSubmit" runat="server" Text="Submit"></asp:Button> <br /> <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="red" ShowMessageBox="true"></asp:ValidationSummary> </center> </div> </form> </body> </html> ``` Thanks for any help on this. It should work, In fact it used to work - perhaps Chrome has revised its security? I still can paste pictures from my email program.