adblock-filter-analyzer
adblock-filter-analyzer copied to clipboard
richTextBox undo behavior is buggy
- paste good tests
- select all, paste bad tests over it
- add a space to a random word
- hit ctrl-z (undo). space is not deleted.
- hit ctrl-z a couple more times. the good tests text comes back, but appended to the end of the bad tests list
Also, paste over old text with new text. Then Ctrl-Z. It will leave the new text, and put the old text beneath it.
Can potentially solve this by using document.execCommand(). That plays nicely with undo and redo.
Can potentially re-factor to use document.execCommand(hiliteColor, ??, "Orange"). Might also fix the richTextBox cursor issue