mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
Get rid of obsolete(?) code for setting selection during cloze creation.
This commit is contained in:
parent
873a981609
commit
765e586a43
1 changed files with 0 additions and 2 deletions
|
@ -135,8 +135,6 @@ function wrap(front, back) {
|
||||||
var content = r.cloneContents();
|
var content = r.cloneContents();
|
||||||
var span = document.createElement("span")
|
var span = document.createElement("span")
|
||||||
span.appendChild(content);
|
span.appendChild(content);
|
||||||
s.removeAllRanges();
|
|
||||||
s.addRange(r);
|
|
||||||
var new_ = wrappedExceptForWhitespace(span.innerHTML, front, back);
|
var new_ = wrappedExceptForWhitespace(span.innerHTML, front, back);
|
||||||
setFormat('inserthtml', new_);
|
setFormat('inserthtml', new_);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue