Disable drag and drop in Kendo UI Editor for AngularJS

3 posts, 0 answers
  1. Peter Terkildsen
    Peter Terkildsen avatar
    16 posts
    Member since:
    Mar 2010

    Posted 16 Jun 2015 Link to this post

    Hi,

     I just discovered that even though I have removed the ImageBrowser-option from the settings it is still possible to upload images via drag and drop. I have investigated the documentation and it seems that there's no way to prevent this via settings or via events.

    So is there some way else I can disable this option?

    Regards,

    Peter

  2. Daniel
    Admin
    Daniel avatar
    2117 posts

    Posted 18 Jun 2015 Link to this post

    Hello Peter,

    This is not functionality of the editor widget but of the browser. It should be possible to prevent dropping content on the editor by preventing the drop event on the editor body:
    var editor = $("#editor").data("kendoEditor");
    $(editor.body).on("drop", function (e) {          
        e.preventDefault();
    });


    Regards,
    Daniel
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Peter Terkildsen
    Peter Terkildsen avatar
    16 posts
    Member since:
    Mar 2010

    Posted 29 Jun 2015 in reply to Daniel Link to this post

    Ok, thanks :-)

     Regards

    Peter

Back to Top