Answered by:
HtmlEditorExtender - can't insert links

Question
-
User-1880235900 posted
hi
I am using HtmlEditorExtender but I have some problems, when I want to add links to my text.
I select some text and click the "Create link"-icon.
It looks fine, but when I save the text and show it Again the text I linked to has got an underscore in front of the linktext, and there is no link.I save the text in a database. The field consist of this text:
here is the link _test</A>As you can see - no link.
I need help to solve my problem.
Thanks
Sunday, September 20, 2015 8:51 AM
Answers
-
User61956409 posted
Hi sixtus,
The following sample is working fine on my side, I could create link in HtmlEditorExtender.
<asp:TextBox ID="txtDescription" runat="server" Width="500" Height="300"></asp:TextBox> <asp:HtmlEditorExtender ID="HtmlEditorExtender1" runat="server" TargetControlID="txtDescription" EnableSanitization="false"> <Toolbar> <asp:Bold /> <asp:Italic /> <asp:Underline /> <asp:StrikeThrough /> <asp:Subscript /> <asp:Superscript /> <asp:JustifyLeft /> <asp:JustifyCenter /> <asp:JustifyRight /> <asp:JustifyFull /> <asp:InsertOrderedList /> <asp:InsertUnorderedList /> <asp:CreateLink /> <asp:UnLink /> <asp:RemoveFormat /> <asp:Cut /> <asp:Copy /> <asp:Paste /> <asp:BackgroundColorSelector /> <asp:ForeColorSelector /> <asp:FontNameSelector /> <asp:FontSizeSelector /> <asp:Indent /> <asp:Outdent /> <asp:InsertHorizontalRule /> <asp:HorizontalSeparator /> <asp:InsertImage /> </Toolbar> </asp:HtmlEditorExtender>
Besides, you could try to uninstall and reinstall your AjaxControlToolkit.
Best Regards,
Fei Han
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Sunday, September 20, 2015 10:45 PM
All replies
-
User61956409 posted
Hi sixtus,
The following sample is working fine on my side, I could create link in HtmlEditorExtender.
<asp:TextBox ID="txtDescription" runat="server" Width="500" Height="300"></asp:TextBox> <asp:HtmlEditorExtender ID="HtmlEditorExtender1" runat="server" TargetControlID="txtDescription" EnableSanitization="false"> <Toolbar> <asp:Bold /> <asp:Italic /> <asp:Underline /> <asp:StrikeThrough /> <asp:Subscript /> <asp:Superscript /> <asp:JustifyLeft /> <asp:JustifyCenter /> <asp:JustifyRight /> <asp:JustifyFull /> <asp:InsertOrderedList /> <asp:InsertUnorderedList /> <asp:CreateLink /> <asp:UnLink /> <asp:RemoveFormat /> <asp:Cut /> <asp:Copy /> <asp:Paste /> <asp:BackgroundColorSelector /> <asp:ForeColorSelector /> <asp:FontNameSelector /> <asp:FontSizeSelector /> <asp:Indent /> <asp:Outdent /> <asp:InsertHorizontalRule /> <asp:HorizontalSeparator /> <asp:InsertImage /> </Toolbar> </asp:HtmlEditorExtender>
Besides, you could try to uninstall and reinstall your AjaxControlToolkit.
Best Regards,
Fei Han
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Sunday, September 20, 2015 10:45 PM -
User-1880235900 posted
Hi
I tried your code, but the result was exactly the same.
I get an underscore in front of the linked text and no hyperlink.I will reinstall AjaxControlToolkit to see if that helps.
Any other suggestions to solve the problem before reinstall?
Best regards
Monday, September 21, 2015 2:55 AM