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

Links in Preview Mode

2 Answers 62 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Dan Ehrmann
Top achievements
Rank 1
Dan Ehrmann asked on 09 May 2012, 12:39 PM
When I save the content of the editor while in preview mode, all links have target="_blank". If I go back to design or html mode, the targets are reset to their original values.

I understand that the target attribute is added in preview mode so that links always open in a new window. But when I access the content for saving, the links should revert to their original targets.

I can't reproduce this in the demo, because I can't click a 'save' button and see the content

My workaround will be to hide my save button while in preview mode, but I would prefer not to have to do this.


I had a post last year where a similar issue was discussed, and you gave me a solution - can I remove this code now?

http://www.telerik.com/community/forums/aspnet-ajax/editor/anchors-and-preview-mode.aspx

2 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 11 May 2012, 03:11 PM
Hi,

Yes, the "Anchors open in new window in Preview Mode in IE9" problem is fixed and you can remove the custom code.

If the problem with the saved taget attribute from preview mode continues when removing the code, attach to the add_submit() method of RadEditor which is fired when the page is submitted and switch to Design mode using the editor.set_mode(1) method.

All the best,
Rumen
the Telerik team
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 their blog feed now.
0
Dan Ehrmann
Top achievements
Rank 1
answered on 11 May 2012, 04:12 PM
editor.set_mode(1) fixed it - thanx
Tags
Editor
Asked by
Dan Ehrmann
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Dan Ehrmann
Top achievements
Rank 1
Share this question
or