0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 07:13:08 -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:
Neil Jenkins 2012-11-01 18:14:10 +11:00
parent 92645f1c0f
commit 388740c7f8

View file

@ -1196,6 +1196,7 @@
var range = getSelection();
recordUndoState( range );
getRangeAndRemoveBookmark( range );
setSelection( range );
setTimeout( afterCut, 0 );
}, false );