mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 07:13:08 -05:00
Merge pull request #224 from superhuman/fix_tests
Fix tests that call selectAll
This commit is contained in:
commit
cbee85ae61
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