mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 07:13:08 -05:00
BUG FIX: Restore copy/cut function on iOS
This commit is contained in:
parent
e133f26db1
commit
7259145552
1 changed files with 2 additions and 2 deletions
|
@ -1989,7 +1989,7 @@ var onCut = function ( event ) {
|
|||
this.saveUndoState( range );
|
||||
|
||||
// Edge only seems to support setting plain text as of 2016-03-11.
|
||||
if ( !isEdge && clipboardData ) {
|
||||
if ( !isEdge && !isIOS && clipboardData ) {
|
||||
moveRangeBoundariesUpTree( range, body );
|
||||
node.appendChild( deleteContentsOfRange( range, body ) );
|
||||
clipboardData.setData( 'text/html', node.innerHTML );
|
||||
|
@ -2016,7 +2016,7 @@ var onCopy = function ( event ) {
|
|||
var node = this.createElement( 'div' );
|
||||
|
||||
// Edge only seems to support setting plain text as of 2016-03-11.
|
||||
if ( !isEdge && clipboardData ) {
|
||||
if ( !isEdge && !isIOS && clipboardData ) {
|
||||
node.appendChild( range.cloneContents() );
|
||||
clipboardData.setData( 'text/html', node.innerHTML );
|
||||
clipboardData.setData( 'text/plain',
|
||||
|
|
Loading…
Reference in a new issue