https://bugzilla.wikimedia.org/show_bug.cgi?id=58724
Aditya Bhatt <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #2 from Aditya Bhatt <[email protected]> --- Created attachment 16293 --> https://bugzilla.wikimedia.org/attachment.cgi?id=16293&action=edit Patch to prevent undo on cut Here's a patch that avoids the 'undo' execCommand and fixes the issue for me in Chromium 36.0.1985.125 (Linux). I'm assuming that the timeout was originally intended to let the code in that block be safely executed only after the browser manipulated (deleted) the selection. It appears that this no longer works and the code is processed before the text is actually deleted. Therefore this change uses preventDefault() to not let the browser do it's thing, and directly handles the entire removal with a transaction. This is my first patch to VE, sorry if I made any obvious mistakes. :) -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
