[wp-trac] [WordPress Trac] #26988: Need a Button to Cancel/Revert Page/Post Edits in Progress

WordPress Trac noreply at wordpress.org
Sun Feb 2 23:06:09 UTC 2014


#26988: Need a Button to Cancel/Revert Page/Post Edits in Progress
-------------------------+-----------------------------
 Reporter:  tomdryan     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Editor       |     Version:  3.8
 Severity:  normal       |  Resolution:
 Keywords:  ux-feedback  |     Focuses:  ui
-------------------------+-----------------------------
Changes (by azaozz):

 * keywords:   => ux-feedback
 * focuses:   => ui
 * milestone:  Awaiting Review => Future Release


Comment:

 IMHO this makes sense. When editing, all changes are regularly autosaved.
 When editing a draft the actual draft post is overwritten in the DB. So we
 will need to keep the initial content of the editor on page load and add a
 button to restore it.

 > Ideally when you try to navigate away from a page with edits in
 progress, you would get a dialog box with the "Publish" menu...

 This may be nice to have but harder (or even impossible) to do in all
 browsers. This dialog is triggered on `beforeunload` which is a "special"
 event. The browsers handle it differently: some would accept a text string
 and show it, others would only show a standard modal. Can try to get it
 working.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26988#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list