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

Customize hyperlink manager

2 Answers 298 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Tony
Top achievements
Rank 1
Tony asked on 06 Apr 2018, 05:34 PM

Hello. 

I was wondering if we have access to any of the hyperlink manager events? I see that we have access to an event by the editor when the hyperlink window is opened. But no events when the user clicks "cancel". I'm asking this because I have a kendo editor widget inside the window widget. However, I do not want the overlay to go move its z-index from behind the window to above it. I would like the hyperlink manager to have its own overlay to go over the kendo window. Is there a way to do this?

2 Answers, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 10 Apr 2018, 10:26 AM
Hello George,

I am not quite sure if I understand correctly the z-index / overlay issue faced. Nevertheless, here is how you could attach a click event handler to the Cancel button of the dialog:
$("#editor").kendoEditor({
  execute: function(e) {
    if (e.name === 'createlink') {
        setTimeout(function() {
        var button = $(".k-editor-dialog .k-dialog-close");
        button.on('click', function() {
            alert('Cancel clicked!')
        });
      });
    }
  }
});

Note the execute event which has been handled. Here you will find a small sample implementing the above suggestion with an Editor widget placed in a Kendo Window.

Regards,
Veselin Tsvetanov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Tony
Top achievements
Rank 1
answered on 10 Apr 2018, 04:58 PM
I think this is what i need! Thanks!
Tags
Editor
Asked by
Tony
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Tony
Top achievements
Rank 1
Share this question
or