mirror of
https://github.com/fastmail/Squire.git
synced 2025-01-05 06:10:07 -05:00
Fix whitespace errors.
Thanks to @gertsonderby who pointed these out in #138.
This commit is contained in:
parent
0ec3c43791
commit
9461368a5c
3 changed files with 12 additions and 12 deletions
|
@ -2899,8 +2899,8 @@ proto._addFormat = function ( tag, attributes, range ) {
|
||||||
function ( node ) {
|
function ( node ) {
|
||||||
return ( node.nodeType === TEXT_NODE ||
|
return ( node.nodeType === TEXT_NODE ||
|
||||||
node.nodeName === 'BR' ||
|
node.nodeName === 'BR' ||
|
||||||
node.nodeName === 'IMG' ) &&
|
node.nodeName === 'IMG'
|
||||||
isNodeContainedInRange( range, node, true );
|
) && isNodeContainedInRange( range, node, true );
|
||||||
},
|
},
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
|
|
|
@ -775,8 +775,8 @@ proto._addFormat = function ( tag, attributes, range ) {
|
||||||
function ( node ) {
|
function ( node ) {
|
||||||
return ( node.nodeType === TEXT_NODE ||
|
return ( node.nodeType === TEXT_NODE ||
|
||||||
node.nodeName === 'BR' ||
|
node.nodeName === 'BR' ||
|
||||||
node.nodeName === 'IMG' ) &&
|
node.nodeName === 'IMG'
|
||||||
isNodeContainedInRange( range, node, true );
|
) && isNodeContainedInRange( range, node, true );
|
||||||
},
|
},
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue