mirror of
https://github.com/fastmail/Squire.git
synced 2025-01-03 13:16:31 -05:00
Fix bug in cut in Safari
* Safari 6 modifies the selection when bookmarking it. Ensure it is restored before the cut takes place.
This commit is contained in:
parent
92645f1c0f
commit
388740c7f8
1 changed files with 1 additions and 0 deletions
|
@ -1196,6 +1196,7 @@
|
||||||
var range = getSelection();
|
var range = getSelection();
|
||||||
recordUndoState( range );
|
recordUndoState( range );
|
||||||
getRangeAndRemoveBookmark( range );
|
getRangeAndRemoveBookmark( range );
|
||||||
|
setSelection( range );
|
||||||
setTimeout( afterCut, 0 );
|
setTimeout( afterCut, 0 );
|
||||||
}, false );
|
}, false );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue