Tool: PEP8 Style Checker Ignored Files: reviewboard/static/rb/js/ui/views/textEditorView.js Tool: Pyflakes Ignored Files: reviewboard/static/rb/js/ui/views/textEditorView.js
Opening and closing rich text editors no longer creates drafts
Review Request #7539 — Created July 24, 2015 and submitted
Previously, opening and closing a Markdown editor would mark the field
as dirty and, in the case of the review request editor, would create a
new review request draft. The reason this occurs is that CodeMirror's
isCleandoes not work the way we want (or it lies), so we check for
dirtiness ourselves by comparing the initial value with CodeMirror's
Ran JS tests.
Verified that editing either the text or the "Enable Markdown" setting
creates a draft while just opening and closing the editor does not.