As I understand it, the current policy on edits that embed screenshots of code and/or errors is given by the following Meta discussions:
Why should I not upload images of code/data/errors? for which the accepted answer is:
You should not post code as an image...
And also Discourage screenshots of code and/or errors for which the accepted answer includes guidance that states:
Images are useful in a post, but make sure the post is still clear without them. If you post images of code or error messages, copy and paste or type the actual code or message into the post directly.
How to review edits that add images? for which the accepted answer states:
If an edit proposes an image of code, then that edit should be rejected. Period.
If the community is still in agreement that these should be the rules for Stack Overflow, then they should be enforced. But currently I'm also seeing edits that embed images of code, and edit approvals of edits that embed images of code. If we want to discourage such edits and edit approvals, we might consider a couple of changes.
Firstly, we could regularly add audits to the "Suggested Edits" review queue that check to see that reviewers reject edits that embed screenshots of text without also adding in the text itself. If reviewers are tested on this periodically, we'll learn.
Secondly, we could add an explicit rejection option to the Why are you rejecting this edit? dialog:
Why are you rejecting this edit?
- spam or vandalism
- no improvement whatsoever
- irrelevant tags
- clearly conflicts with author's intent
- attempt to reply
- Embeds a screenshot of code or other textual data
An edit that embeds a screenshot of code, errors, or other textual data without also including the text itself should be rejected as per this rule.- causes harm
[ ]
By adding an explicit reason to reject an edit to this dialog, we make it much more likely that editors, and edit reviewers, will become aware of that rule. (Usually I pick "causes harm" and add a note linking back to https://meta.stackoverflow.com/a/350228 - but I admit that seems harsh.)
Of course, the Meta policies included above are from https://meta.stackoverflow.com/ and thus only apply to Stack Overflow itself. I have no idea whether it's possible to implement a rejection reason specific to one and only one Stack Exchange site.