Adding blank target attribute to new <a> tags

2 posts, 0 answers
  1. Wes
    Wes avatar
    8 posts
    Member since:
    Aug 2016

    Posted 15 Dec 2016 Link to this post

    IE11 is autoconverting any URL syntax into a hyperlink, and this is fine, but the target of the hyperlink is the current page, which wrecks user flow when the resulting static content link is clicked. I need the hyperlinks to include the target="_blank" attribute. Is there a way to do this in the editor already?

  2. Rumen
    Rumen avatar
    13243 posts

    Posted 16 Dec 2016 Link to this post

    Hello Wes,

    The text-to-URL auto-conversion is an IE feature for all contentEditable=true HTML elements such as the content area of Kendo Editor. This functionality is entirely controlled by the browser and there isn't an API to insert the target attribute during the text to URL conversion.

    You can add the target attribute later when obtaining the content, but this could be too late for your requirements.

    Best regards,
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top