Merge pull request #82 from juhasch/dragdrop

Only activate drag&drop in command mode
This commit is contained in:
Juergen Hasch
2014-06-18 17:41:43 +02:00
+1
View File
@@ -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();