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:
parent
41d7346283
commit
349f391075
1 changed files with 4 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue