Undo (Ctrl+Z) sometimes corrupts text
-
I've found an Undo bug that occurs e.g. in PHPBB3 reply form when I use BBcode buttons. I've made a form example with required JS functions, you can test it here:
https://www.w3schools.com/code/tryit.asp?filename=FLWZSQKX66HQSteps to reproduce the bug:
- Write "one three" in the textbox.
- Press Ctrl+Left and add "two" between "one" and "three".
- Select "two" and click "i" button for wrapping "two" into "i" BBcode.
- Press Ctrl+Z. Vivaldi corrupts the text.
Tests in different browsers:
(IE 11.0) I can press Ctrl+Z and successfully undo transformation of "two" into "[i]two[/i]".
(Firefox 56.0.2) Undo history is lost after clicking "i" button.
(Vivaldi 1.13.1008.32) Ctrl+Z corrupts the text. E.g. Ctrl+Z produces "one wo [/i]three", Ctrl+Y then produces "one two wo[/i] three", and there is no way to get correct text back. -