0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2025-01-03 05:00:13 -05:00

Fix typo in cut/copy handlers

This commit is contained in:
Neil Jenkins 2016-03-14 15:21:33 +11:00
parent 41d7346283
commit 349f391075

View file

@ -15,7 +15,8 @@ var onCut = function ( event ) {
moveRangeBoundariesUpTree( range, body );
node.appendChild( deleteContentsOfRange( range, body ) );
clipboardData.setData( 'text/html', node.innerHTML );
clipboard.setData( 'text/plain', node.innerText || node.textContent );
clipboardData.setData( 'text/plain',
node.innerText || node.textContent );
event.preventDefault();
} else {
setTimeout( function () {
@ -40,7 +41,8 @@ var onCopy = function ( event ) {
if ( !isEdge && clipboardData ) {
node.appendChild( range.cloneContents() );
clipboardData.setData( 'text/html', node.innerHTML );
clipboard.setData( 'text/plain', node.innerText || node.textContent );
clipboardData.setData( 'text/plain',
node.innerText || node.textContent );
event.preventDefault();
}
};