Links in Preview Mode

3 posts, 1 answers
  1. Dan Ehrmann
    Dan Ehrmann avatar
    166 posts
    Member since:
    Jul 2004

    Posted 09 May 2012 Link to this post

    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. Answer
    Rumen
    Admin
    Rumen avatar
    14419 posts

    Posted 11 May 2012 Link to this post

    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.
  3. Dan Ehrmann
    Dan Ehrmann avatar
    166 posts
    Member since:
    Jul 2004

    Posted 11 May 2012 Link to this post

    editor.set_mode(1) fixed it - thanx
Back to Top