mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 15:23:29 -05:00
Update build files
This commit is contained in:
parent
94210eee74
commit
25d958f695
2 changed files with 5 additions and 4 deletions
|
@ -2117,7 +2117,7 @@ var cleanTree = function cleanTree ( node, config, preserveWS ) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
data = data.replace( /^[ \t\r\n]+/g, sibling ? ' ' : '' );
|
data = data.replace( /^[ \r\n]+/g, sibling ? ' ' : '' );
|
||||||
}
|
}
|
||||||
if ( endsWithWS ) {
|
if ( endsWithWS ) {
|
||||||
walker.currentNode = child;
|
walker.currentNode = child;
|
||||||
|
@ -2132,7 +2132,7 @@ var cleanTree = function cleanTree ( node, config, preserveWS ) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
data = data.replace( /[ \t\r\n]+$/g, sibling ? ' ' : '' );
|
data = data.replace( /[ \r\n]+$/g, sibling ? ' ' : '' );
|
||||||
}
|
}
|
||||||
if ( data ) {
|
if ( data ) {
|
||||||
child.data = data;
|
child.data = data;
|
||||||
|
@ -2693,7 +2693,8 @@ var sanitizeToDOMFragment = function ( html, isPaste, self ) {
|
||||||
ALLOW_UNKNOWN_PROTOCOLS: true,
|
ALLOW_UNKNOWN_PROTOCOLS: true,
|
||||||
WHOLE_DOCUMENT: false,
|
WHOLE_DOCUMENT: false,
|
||||||
RETURN_DOM: true,
|
RETURN_DOM: true,
|
||||||
RETURN_DOM_FRAGMENT: true
|
RETURN_DOM_FRAGMENT: true,
|
||||||
|
FORCE_BODY: false
|
||||||
}) : null;
|
}) : null;
|
||||||
return frag ? doc.importNode( frag, true ) : doc.createDocumentFragment();
|
return frag ? doc.importNode( frag, true ) : doc.createDocumentFragment();
|
||||||
};
|
};
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue