mirror of
https://github.com/fastmail/Squire.git
synced 2025-01-03 13:16:31 -05:00
Fixed copypasta-mistake, nextSibling -> previousSibling.
This commit is contained in:
parent
49ca521704
commit
c40f900b7d
3 changed files with 4 additions and 3 deletions
|
@ -2813,7 +2813,7 @@ proto.hasFormat = function ( tag, attributes, range ) {
|
||||||
if ( !range.collapsed &&
|
if ( !range.collapsed &&
|
||||||
range.endContainer.nodeType === TEXT_NODE &&
|
range.endContainer.nodeType === TEXT_NODE &&
|
||||||
range.endOffset === 0 &&
|
range.endOffset === 0 &&
|
||||||
range.endContainer.nextSibling ) {
|
range.endContainer.previousSibling ) {
|
||||||
range.setEndAfter( range.endContainer.previousSibling );
|
range.setEndAfter( range.endContainer.previousSibling );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -689,7 +689,7 @@ proto.hasFormat = function ( tag, attributes, range ) {
|
||||||
if ( !range.collapsed &&
|
if ( !range.collapsed &&
|
||||||
range.endContainer.nodeType === TEXT_NODE &&
|
range.endContainer.nodeType === TEXT_NODE &&
|
||||||
range.endOffset === 0 &&
|
range.endOffset === 0 &&
|
||||||
range.endContainer.nextSibling ) {
|
range.endContainer.previousSibling ) {
|
||||||
range.setEndAfter( range.endContainer.previousSibling );
|
range.setEndAfter( range.endContainer.previousSibling );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue