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

How to make "open link in new window" option checked by default?

1 Answer 514 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Murray
Top achievements
Rank 1
Murray asked on 06 May 2013, 12:47 AM
Hi,

How do you make the "open link in new window option" checked by default, or always checked?

This option is in the "insert hyperlink" dialog for the editor.

Thanks



1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 06 May 2013, 07:45 AM
Hello Murray,

There is no configuration option that allows this, but you can bind an event handler to the editor execute event and check the checkbox there:

$("#editor").kendoEditor("bind", "execute", function(e) {
    if (e.name == "createlink") {
        setTimeout(function() {
            $("#k-editor-link-target").prop("checked", true);
        }, 1);
    }
});

Regards,
Alex Gyoshev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Editor
Asked by
Murray
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or