mirror of
https://github.com/wassname/jupyter_contrib_nbextensions.git
synced 2026-08-11 11:19:52 +08:00
Merge pull request #82 from juhasch/dragdrop
Only activate drag&drop in command mode
This commit is contained in:
@@ -44,6 +44,7 @@ drag_and_drop = function() {
|
||||
|
||||
/* allow dropping an image in notebook */
|
||||
window.addEventListener('drop', function(event){
|
||||
if (IPython.notebook.mode === "edit") return;
|
||||
// console.log("drop event x:",event);
|
||||
var cell = IPython.notebook.get_selected_cell();
|
||||
event.preventDefault();
|
||||
|
||||
Reference in New Issue
Block a user