From 765e586a43376d960871a4bcb238386598aaf0b3 Mon Sep 17 00:00:00 2001 From: Aaron Harsh Date: Sun, 29 Jan 2012 20:20:35 -0800 Subject: [PATCH] Get rid of obsolete(?) code for setting selection during cloze creation. --- aqt/editor.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/aqt/editor.py b/aqt/editor.py index 10cb05a16..e1434324f 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -135,8 +135,6 @@ function wrap(front, back) { var content = r.cloneContents(); var span = document.createElement("span") span.appendChild(content); - s.removeAllRanges(); - s.addRange(r); var new_ = wrappedExceptForWhitespace(span.innerHTML, front, back); setFormat('inserthtml', new_); };