Skip to content

Commit bb2847f

Browse files
committed
Disable setDragImage call, which apparently caused Safari crashes
See issue #332
1 parent 55b41fd commit bb2847f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/codemirror.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,9 +462,10 @@ var CodeMirror = (function() {
462462
}
463463
function onDragStart(e) {
464464
var txt = getSelection();
465-
// This will reset escapeElement
466-
htmlEscape(txt);
467-
e.dataTransfer.setDragImage(escapeElement, 0, 0);
465+
// Disabled until further notice. Doesn't work on most browsers,
466+
// and crashes Safari (issue #332).
467+
//htmlEscape(txt);
468+
//e.dataTransfer.setDragImage(escapeElement, 0, 0);
468469
e.dataTransfer.setData("Text", txt);
469470
}
470471

0 commit comments

Comments
 (0)