This is a migrated thread and some comments may be shown as answers.

The value selected in "target" property of hyperlink manager of rad editor is not getting saved properly.

16 Answers 175 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Sailaja
Top achievements
Rank 1
Sailaja asked on 20 Nov 2013, 05:45 AM
Hi,
we are facing issue in radeditor hyperlink manager.
I tried setting the target window for the link using hyperlink manager. No matter which option you choose, the link only opens in a 'new window'. The other choices available in hyperlink manager such as 'same window ' or 'parent window' do not work.

by default 'target' value is getting saved as  'new window', when i am choosing any other options like 'parent window 'and after clicking ok it is modified as 'new window'. when I reopen the hyperlink manager I am only getting 'new window' but not the previous option what i have chosen.
can any one help me in finding the solution. currently we are using telerik version '2012.2.912.35' and i have given the EditModes="Design".

Thanks.

16 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 20 Nov 2013, 02:56 PM
Hello Sailaja,

Can you please provide more details about which mode you are referring to? Note that you could check the current target attribute's value in the HTML view.

Regards,
Ianko
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Sailaja
Top achievements
Rank 1
answered on 21 Nov 2013, 05:01 AM
Hi lanko,
I am using only Design view. when i have verified the target in ie developers tools the target is coming as '_blank' for all the choices.

Thanks,
Sailaja.
0
Ianko
Telerik team
answered on 21 Nov 2013, 07:43 AM
Hello ,

The described problem is not reproducible on my end. Please try using the same steps with this online demo and get back to me with the exact steps, so that I could be able to investigate them.

Note that it would be very helpful if you could provide a screencast of the process, so that I could be sure that I am following the correct steps leading to the issue.

Regards,
Ianko
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Sailaja
Top achievements
Rank 1
answered on 31 Dec 2013, 09:09 AM
Hi lanko,
I have tried the issue in the 'online demo' that you have shared, but i am unable to replicate the issue with your demo.
still I am facing the issue at my end. we are using the telerik version '2012.2.912.35'.
Repro steps:
I have a rad editor, in that  I created a hyperlink.
Right click on the hyperlink -> select properties and modified the options for 'Target'. for example I have modified the target to 'Browser   window' from 'New window' -> clicked on 'ok' -> when I have opened the properties page now it is showing the target as 'New window' instead of what I have chosen previously i.e 'Browse window'.

can you please let me know the telerik version that you have used for the demo that you have shared.
is there any changes in this scenario when compared with previous version '2012.2.912.35'

Thanks in advance,
Sailaja.
0
Niko
Telerik team
answered on 02 Jan 2014, 02:16 PM
Hello,

Testing was done with the latest version and the version that you suggested. In neither of those cases were we able to reproduce the issue. Could you, please, provide a screencast of your behavior so that we can be sure we are doing all the necessary steps correctly? Here is the screencast that I have prepared with the test using the 2012.2.915.35 version - http://screencast.com/t/4iQ85cK7U3G.

Regards,
Niko
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Sailaja
Top achievements
Rank 1
answered on 06 Jan 2014, 01:20 PM
Hi Niko,

Thanks for your help and detailed steps.please find the replication steps in our environment at
http://www.screencast.com/t/GhfrrSPvfpra. Please let me know if you need any other information.

Thanks,
Sailaja.

0
Sailaja
Top achievements
Rank 1
answered on 07 Jan 2014, 10:39 AM
Hi Niko,

We are doing 'copy and paste of hyperlink' into radeditor and then modifying the properties by right clicking it.
From the screencast that you have provided, I have understand that you have created the hyperlink by using the insert link option available.
if possible can you please share the behavior by copying any hyperlink into radeditor.

As we don't have a option 'Insert Link' in the radeditor area, is it causing this issue.

Thanks,
Sailaja.
0
Ianko
Telerik team
answered on 08 Jan 2014, 08:54 AM
Hi Sailaja,

The properties functionality of the hyperlink in the editor should be not different for copied links or inserted ones by the manager. You can review this screencast, in which I am showing the same steps provided in your screencast and the link in the content is changing as expected.

Please verify that the RadControls version is 2012.2.912. Currently I am unable to determine why this problem occurs. You could check if this issue could be isolated in a simple project and provide it, so that we could reproduce it on our end and further investigate it. 

Regards,
Ianko
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Sailaja
Top achievements
Rank 1
answered on 08 Jan 2014, 09:20 AM
Hi lanko,
Below is the sample code what I am using. Can you please let me know do we have any option to disabling the 'Properties' of hyperlinkmanager. that means by right clicking we should not get the option to change the propertries.

    <div id="questionArea" runat="Server">
        <div>
        <label id="lblQuestionCode" class="BodyText leftAlignElement MarginTopAnswersCss" runat="server" />
            <input type="text" tabindex="2" style="width: 115px" id="txtQuestionCode" runat="server" class="BodyText MarginTopAnswersCss leftAlignElement" />
            <asp:label  TabIndex="3" onfocus="ShowEditor()" AssociatedControlID="questionEditor" id="lblQuestionText" CssClass="BodyText leftAlignElement MainPageMarginTopCSS"
                runat="server" />
            <div id="virtualEditor" runat="Server" onclick="ShowEditor()" class="virtualEditor BodyText leftAlignElement whiteBackground MarginTopAnswersCss borderColor1">
            </div>
            <div id="tContent" runat="server" style="display: none" class="editorParentDiv leftAlignElement MarginTopAnswersCss">
                <telerik:RadEditor TabIndex="3" ContentFilters="RemoveScripts, FixUlBoldItalic, FixEnclosingP, ConvertFontToSpan, ConvertToXhtml" StripFormattingOptions="NoneSupressCleanMessage"  OnClientLoad="OnClientLoad" Width="100%" EditModes="Design" Height="80px" ID="questionEditor" runat="server">
                   
                </telerik:RadEditor>
            </div>
        </div>
Thanks,
Sailaja.
0
Ianko
Telerik team
answered on 10 Jan 2014, 03:25 PM
Hello Sailaja,

You can modify the context menu, so that only the remove Link tool is available in it. You can examine this example to achieve that:
<telerik:RadEditor ID="RadEditor" runat="server">
    <ContextMenus>
        <telerik:EditorContextMenu TagName="A">
            <telerik:EditorTool Name="Unlink" />
        </telerik:EditorContextMenu>
    </ContextMenus>
</telerik:RadEditor>


Regards,
Ianko
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Sailaja
Top achievements
Rank 1
answered on 21 Jan 2014, 06:37 AM
Hi lanko,
Thanks for your reply I have tried the below context menu option to disable the setlinkproperties option of anchor tag. It works fine for me.
but similarly is there any way to make the 'target' option to work with my code. Below is the sample code I am refering. can you please let me know do I missing any thing.

<div id="virtualEditor" runat="Server" onclick="ShowEditor()" class="virtualEditor BodyText leftAlignElement whiteBackground MarginTopAnswersCss borderColor1">
            </div>
            <div id="tContent" runat="server" style="display: none" class="editorParentDiv leftAlignElement MarginTopAnswersCss">
                <telerik:RadEditor TabIndex="3" ContentFilters="RemoveScripts, FixUlBoldItalic, FixEnclosingP, ConvertFontToSpan, ConvertToXhtml" StripFormattingOptions="NoneSupressCleanMessage"  OnClientLoad="OnClientLoad" Width="100%" EditModes="Design" Height="80px" ID="questionEditor" runat="server">
                   
                </telerik:RadEditor>

Thanks,
Sailaja.
0
Ianko
Telerik team
answered on 23 Jan 2014, 08:17 AM
Hello Sailaja,

Unfortunately I am not sure if I understand correctly what is the required information.

Could you please get back to me with more details about:
  • How is the hyperlink manager and the context menus related to the provided example?
  • What is the purpose of the provided markup?
  • Can you provide the implementation of the custom methods ShowEditor and OnClientLoad?
  • Can you provide detail information or perhaps steps that explain the desired functionality?

Any additional information will be helpful for me to understand the experienced difficulties and assist you properly on this.

Regards,
Ianko
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Sailaja
Top achievements
Rank 1
answered on 31 Jan 2014, 01:55 PM
Hi lanko,

The actual issue is the hyperlink manager is not persisting the value that I have selected for 'Target' attribute.
I have created a sample project to check this behavior. please download it from http://www.screencast.com/t/ZHqUgCH5Yn.
I have uploaded the replication steps for this project at http://www.screencast.com/t/9dXCDUXejg.
Can you please verify this and let me know the possible problem for this issue.

Thanks,
Sailaja.
0
Ianko
Telerik team
answered on 05 Feb 2014, 09:13 AM
Hi Sailaja,

Thank you for getting back to me.

The described behavior is a known bug and it is logged for fixing. You can track its status with this feedback portal item. In it you can also find a possible workaround to resolve the issue for the time being.

Regards,
Ianko
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
0
Sailaja
Top achievements
Rank 1
answered on 13 Feb 2014, 03:40 PM
Hi lanko,

Thanks for your reply. I have verified the possible workarounds that you have suggested in feedback portal.
but it is difficult to implement those changes in my project as it has involved adding new custom pages. can you please let me know do you have any other suggestions to add into my sample project to resolve/avoid this issue. sample project is shared at http://www.screencast.com/t/ZHqUgCH5Yn.

Thanks,
Sailaja.
0
Ianko
Telerik team
answered on 18 Feb 2014, 05:00 AM
Hello Sailaja,

Unfortunately, I am unable to provide different approach to resolve the issue.

The mentioned issue comes from the dialog and the appropriate resolution should be to be fixed in the same place from where it originates. Due to the reason that the dialogs are actually user controls, this  issue should be resolved by adding an additional customized built-in dialog.

Regards,
Ianko
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Editor
Asked by
Sailaja
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Sailaja
Top achievements
Rank 1
Niko
Telerik team
Share this question
or