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_); };