Hi,
I am not sure how many out there have the same issue. Try this,
1. Go to this link
http://demos.telerik.com/aspnet-ajax/editor/examples/externaldialogspath/defaultcs.aspx
2. select the Hyperlink Manager and click on the tab Email
3. Add an email Id, subject and click on "OK" and check whether the email link has been created within your editor.
I am not seeing the email link created. I am surprised, the demo link does seem to work for me. I have a similar requirement and it does not work for me after changing the code as per documentation on the link above.
If you're not getting this issue, it may be my browser.
Any help on this would be greatly appreciated.
Thank you,
Vijay
I am not sure how many out there have the same issue. Try this,
1. Go to this link
http://demos.telerik.com/aspnet-ajax/editor/examples/externaldialogspath/defaultcs.aspx
2. select the Hyperlink Manager and click on the tab Email
3. Add an email Id, subject and click on "OK" and check whether the email link has been created within your editor.
I am not seeing the email link created. I am surprised, the demo link does seem to work for me. I have a similar requirement and it does not work for me after changing the code as per documentation on the link above.
If you're not getting this issue, it may be my browser.
Any help on this would be greatly appreciated.
Thank you,
Vijay
4 Answers, 1 is accepted
0
Hi Vijay,
If the selection in the content area is empty then the Link Text field in the E-mail tab of the Link manager will be loaded empty. In this scenario the user should fill the Link Text field too with the desired e-mail link text.
If the user does not fill this textbox then the e-mail will be inserted in the editor but will be invisible:
<a href="mailto:test@test.com?subject=Test"></a>
If you would like you can customize the external link manager dialog by adding textboxes validation in the link manager and force the user to fill all fields in the link manager.
Greetings,
Rumen
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
If the selection in the content area is empty then the Link Text field in the E-mail tab of the Link manager will be loaded empty. In this scenario the user should fill the Link Text field too with the desired e-mail link text.
If the user does not fill this textbox then the e-mail will be inserted in the editor but will be invisible:
<a href="mailto:test@test.com?subject=Test"></a>
If you would like you can customize the external link manager dialog by adding textboxes validation in the link manager and force the user to fill all fields in the link manager.
Greetings,
Rumen
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Ron Handley
Top achievements
Rank 1
answered on 23 Feb 2010, 09:31 PM
I have also had difficulty with the link manager. I followed the instructions on how to disable a tab. I disabled the Anchor tab. Unfortunately in doing this I ended up disabling the email functionality. It does not matter what I type into the fields it simply does not become a link even though when I highlight the text that was meant to become an email link the "Remove Link" option does become available. I noticed that the instructions on how to customize a dialog within the rad editor does not seem to be completely the same as the code that came with the dialog version that I have.
Thank you in advance,
Ron
Thank you in advance,
Ron
My code looks as follows:
| <telerik:RadTab Text="AnchorTab" Visible="false" Value="AnchorTab"></telerik:RadTab> |
| <asp:PlaceHolder visible="false" ID="existingAnchorRow" runat="server"> |
| <tr style="display:none;"> |
| <td class="reLabelCell"> |
| <label for="ExistingAnchor" class="reDialogLabel"> |
| <span> |
| <script type="text/javascript">document.write(localization["ExistingAnchor"]);</script> |
| </span> |
| </label> |
| </td> |
| <td class="reControlCell"> |
| <select id="ExistingAnchor"> |
| <option selected="selected">None</option> |
| </select> |
| </td> |
| </tr> |
| </asp:PlaceHolder> |
The demo code is
<telerik:RadTab Text="Anchor" Visible="false" Value="Anchor"></telerik:RadTab>
<tr id="existingAnchorRow" style="display:none;" runat="server">
0
Vijay
Top achievements
Rank 1
answered on 23 Feb 2010, 10:23 PM
Ron,
I am not sure I am understanding your question completely, But there is a part that is missing in the documentation, but if you debug you could find it.
On linkManager.ascx file, scroll to getModifiedLink: function()
{
...
...
else if (selectedIndex == 3)//"anchor"
{
}
else //"email"
{
resultLink.href = "mailto:" + this._emailAddress.value;
if (this._emailSubject.value != "")
{
resultLink.href += "?subject=" + this._emailSubject.value;
}
if (this._emailTextBoxParentNode && this._emailTextBoxParentNode.style.display != "none")
{
resultLink.innerHTML = this._emailLinkText.value;
}
this._setClass(resultLink, this._emailCssClass);
}
return resultLink;
}
Check you index value. When you remove a tab, the index becomes 2 instead of 3. The index were hard coded here so do something like above-
I am not sure I am understanding your question completely, But there is a part that is missing in the documentation, but if you debug you could find it.
On linkManager.ascx file, scroll to getModifiedLink: function()
{
...
...
else if (selectedIndex == 3)//"anchor"
{
}
else //"email"
{
resultLink.href = "mailto:" + this._emailAddress.value;
if (this._emailSubject.value != "")
{
resultLink.href += "?subject=" + this._emailSubject.value;
}
if (this._emailTextBoxParentNode && this._emailTextBoxParentNode.style.display != "none")
{
resultLink.innerHTML = this._emailLinkText.value;
}
this._setClass(resultLink, this._emailCssClass);
}
return resultLink;
}
Check you index value. When you remove a tab, the index becomes 2 instead of 3. The index were hard coded here so do something like above-
0
Accepted
Ron Handley
Top achievements
Rank 1
answered on 23 Feb 2010, 10:29 PM
Yes that did it! The index was off. Thank you for your help Vijay and your crazy fast response. It was a real help.
Have a great day
Ron
Have a great day
Ron
