flake8
passed.
JSHint
passed.
Review Request #11109 — Created Aug. 1, 2020 and submitted
When clipboard events are triggered via the UI rather than the keyboard
(for example, right-click menu options or middle-click paste), it
wouldn't trigger an update of the dirty state, resulting in the editor
resetting when the "OK" button was clicked. This is trivially fixed by
updating the dirty state when we getcut
orpaste
events.
Used the right-click menu to edit a field with both cut and paste
operations. Saw that the contents were correctly saved when clicking
"OK" with both markdown and plain-text modes.