mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
Select beginning of end line when offset is 0 on frontend tests
This commit is contained in:
parent
95dc9d0315
commit
3f15ff91eb
2 changed files with 19 additions and 1 deletions
|
@ -145,7 +145,7 @@ var helper = {};
|
|||
helper.selectLines = function($startLine, $endLine, startOffset, endOffset){
|
||||
// if no offset is provided, use beginning of start line and end of end line
|
||||
startOffset = startOffset || 0;
|
||||
endOffset = endOffset || $endLine.text().length;
|
||||
endOffset = endOffset === undefined ? $endLine.text().length : endOffset;
|
||||
|
||||
var inner$ = helper.padInner$;
|
||||
var selection = inner$.document.getSelection();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue