Last post May 14, 2020 10:45 PM by inkaln
May 13, 2020 08:24 PM|inkaln|LINK
I have a question for the HTML Editor control I'm using.....when using option to paste from MS Word, it has a popup with message. Is there a way to update the message?
It says something like
Pasting from MS Word is switched on. Just Now: User Ctrl-V.
Is there a way to remove the top line to not include the URL...or update this message entirely?
Also, if copying from word, its concatenating words where there's a break...haven't been able to solve this unless user pastes into notepad first and then from there copy/paste into this editor. Are there other editor controls that work better? Thanks.
May 14, 2020 01:43 AM|KathyW|LINK
Try it in different browsers. Some browsers identify the source of an alert. You can't change that.
May 14, 2020 02:59 AM|samwu|LINK
Also, if copying from word, its concatenating words where there's a break...haven't been able to solve this unless user pastes into notepad first and then from there copy/paste into this editor. Are there other editor controls that work better?
As far as I know, the AJAX HTML Editor control is outdated, the latest should be the HtmlEditorExtender control.
This is my test result, I did not encounter the problem you said.
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:TextBox ID="TextBox1" runat="server" Width="300" Height="200"></asp:TextBox>
<ajaxToolkit:HtmlEditorExtender ID="HtmlEditorExtender1" runat="server" TargetControlID="TextBox1" EnableSanitization="false"></ajaxToolkit:HtmlEditorExtender>
More information about HTMLEditorExtender you can refer to this link:
May 14, 2020 05:53 AM|Yang Shen|LINK
Based on your description, I cannot reproduce your problem.
The browsers I tried include the following :
Please provide sample code that can reproduce the issue.
And since this issue might be related to browser and security settings, please provide the browser you are using to test and its version too.
May 14, 2020 05:54 PM|inkaln|LINK
Ok so I downloaded the latest ajaxtoolkit and referencing the HTMLExtender control; however, the SanitizerProviders.dll and HtmlAgilityPack.dll do not get added automatically....I'm trying to search Nuget and added the AjaxControlToolkit.HtmlEditor.Sanitizer reference.
Adding the following sections in the config gives an error stating the <stystem.web> has an invalid child <sanitizer. Any ideas on how to fix this? So I have the following added to my config
<section name="ajaxControlToolkit" type="AjaxControlToolkit.AjaxControlToolkitConfigSection, AjaxControlToolkit" />
<compilation targetFramework="4.5" debug="false"/>
</system.web>I don't think there's a reference to the HtmlAgilityPackSanitizerProvider....do I need to add this to the reference manually?
May 14, 2020 10:41 PM|inkaln|LINK
I use the HTMLExtender instead now....seems to have fixed issue in this control.
May 14, 2020 10:45 PM|inkaln|LINK
The control shows fine when used in aspx page directly. However, I have bootstrap tabs inside a modal pop up control and inside one of these tabs I have the control....so when I open the modal window, the control initially doesn't load but shows gray vertical
line,which when hovered over, shows the buttons I'm using from toolbar. When a postback occurs when changing dropdown list item from the same tab where control is then it loads fine. I tried setting the textbox.Text property in the page Load event but that
doesn't seem to work....any ideas on how to have the control loaded automatically in the tab pane on the modal popup?