mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 23:40:35 -05:00
Update to latest
This commit is contained in:
parent
8d51967645
commit
ba4fb64543
2 changed files with 4 additions and 4 deletions
|
@ -2078,15 +2078,15 @@ var notWSTextNode = function ( node ) {
|
||||||
notWS.test( node.data );
|
notWS.test( node.data );
|
||||||
};
|
};
|
||||||
var isLineBreak = function ( br ) {
|
var isLineBreak = function ( br ) {
|
||||||
var block = br.parentNode,
|
var block = br.parentNode;
|
||||||
walker;
|
var walker;
|
||||||
while ( isInline( block ) ) {
|
while ( isInline( block ) ) {
|
||||||
block = block.parentNode;
|
block = block.parentNode;
|
||||||
}
|
}
|
||||||
walker = new TreeWalker(
|
walker = new TreeWalker(
|
||||||
block, SHOW_ELEMENT|SHOW_TEXT, notWSTextNode );
|
block, SHOW_ELEMENT|SHOW_TEXT, notWSTextNode );
|
||||||
walker.currentNode = br;
|
walker.currentNode = br;
|
||||||
return !!walker.nextNode();
|
return !!walker.nextNode() || !walker.previousNode();
|
||||||
};
|
};
|
||||||
|
|
||||||
// <br> elements are treated specially, and differently depending on the
|
// <br> elements are treated specially, and differently depending on the
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue