Commit a449afcf authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fix #322: regression where selection in boxes didn't get created properly

parent 80fe5356
...@@ -4890,6 +4890,7 @@ function select_text(cid, elem) { ...@@ -4890,6 +4890,7 @@ function select_text(cid, elem) {
} else if (win.getSelection) { } else if (win.getSelection) {
range = win.document.createRange(); range = win.document.createRange();
range.selectNodeContents(elem); range.selectNodeContents(elem);
win.getSelection().removeAllRanges();
win.getSelection().addRange(range); win.getSelection().addRange(range);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment