mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 07:13:08 -05:00
Fix tests by resetting the selection when selectAll is called
This commit is contained in:
parent
b2f0c42553
commit
082fb79fcd
1 changed files with 1 additions and 0 deletions
|
@ -26,6 +26,7 @@ describe('Squire RTE', function () {
|
|||
});
|
||||
|
||||
function selectAll(editor) {
|
||||
doc.getSelection().removeAllRanges()
|
||||
var range = doc.createRange();
|
||||
range.setStart(doc.body.childNodes.item(0), 0);
|
||||
range.setEnd(doc.body.childNodes.item(0), doc.body.childNodes.item(0).childNodes.length);
|
||||
|
|
Loading…
Reference in a new issue