Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
What about a 'cancel' or 'delete draft' button right underneath the editor?
This discussion is related to the Draft Sweeper addon.
AaronWebstey Headband AfficionadoCole Harbour, NS ✭✭✭
I told my users that this would be a bad thing to do, scalability-wise, and they're happy with that - so I'm perfectly satisfied with the plugin and will be paying/donating. In reality, I have no idea what the implications of doing this would be, or how hard it would be.
In case you're interested, what they originally asked for was a 'Cancel' button under the comment editor (similar to the one I see under the discussion editor here). So if you start typing something, a draft gets autosaved, and then you change your mind, you can hit 'Cancel' (or 'Delete Draft', whatever) and the draft gets purged immediately, on the spot.
Thanks again, @hgtonight !!
I couldn't figure out a way to do it without writing any JS, but the feature has been added in 0.3: https://vanillaforums.org/addon/draftsweeper-plugin-0.3
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Wishing there were a 'slow clap' button.
The 'Clear Draft' button was deleting the draft, but not clearing the text from the editor, when using WYSIWYG advanced editor. I added this after line 5 of sweeper.js and it seems to work now: