Customize hyperlink manager

3 posts, 0 answers
  1. George
    George avatar
    58 posts
    Member since:
    Apr 2014

    Posted 06 Apr Link to this post

    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. Veselin Tsvetanov
    Admin
    Veselin Tsvetanov avatar
    723 posts

    Posted 10 Apr Link to this post

    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.
  3. George
    George avatar
    58 posts
    Member since:
    Apr 2014

    Posted 10 Apr in reply to Veselin Tsvetanov Link to this post

    I think this is what i need! Thanks!
Back to Top