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

Disable drag and drop in Kendo UI Editor for AngularJS

2 Answers 223 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Peter Terkildsen
Top achievements
Rank 1
Peter Terkildsen asked on 16 Jun 2015, 09:41 AM

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 Answers, 1 is accepted

Sort by
1
Daniel
Telerik team
answered on 18 Jun 2015, 10:37 AM
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!
 
0
Peter Terkildsen
Top achievements
Rank 1
answered on 30 Jun 2015, 04:59 AM

Ok, thanks :-)

 Regards

Peter

Tags
Editor
Asked by
Peter Terkildsen
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Peter Terkildsen
Top achievements
Rank 1
Share this question
or