Skip to content

Commit

Permalink
Release v1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
neilj committed Mar 14, 2016
1 parent 349f391 commit 3afa14b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions build/squire-raw.js
Expand Up @@ -1993,6 +1993,8 @@ var onCut = function ( event ) {
moveRangeBoundariesUpTree( range, body );
node.appendChild( deleteContentsOfRange( range, body ) );
clipboardData.setData( 'text/html', node.innerHTML );
clipboardData.setData( 'text/plain',
node.innerText || node.textContent );
event.preventDefault();
} else {
setTimeout( function () {
Expand All @@ -2017,6 +2019,8 @@ var onCopy = function ( event ) {
if ( !isEdge && clipboardData ) {
node.appendChild( range.cloneContents() );
clipboardData.setData( 'text/html', node.innerHTML );
clipboardData.setData( 'text/plain',
node.innerText || node.textContent );
event.preventDefault();
}
};
Expand Down

0 comments on commit 3afa14b

Please sign in to comment.