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

Adding blank target attribute to new <a> tags

1 Answer 192 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Wes
Top achievements
Rank 1
Wes asked on 15 Dec 2016, 09:05 PM

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?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 16 Dec 2016, 02:19 PM

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,
Rumen
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.
Tags
Editor
Asked by
Wes
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or