[wp-trac] [WordPress Trac] #32273: TinyMCE results in lost data if post save fails and back button is clicked

WordPress Trac noreply at wordpress.org
Sat Jun 4 00:07:18 UTC 2016


#32273: TinyMCE results in lost data if post save fails and back button is clicked
-------------------------------+------------------------------
 Reporter:  archon810          |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  TinyMCE            |     Version:  4.2.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:  javascript
-------------------------------+------------------------------

Comment (by archon810):

 The reason I want to do it in PHP is because then there's a) no way to
 circumvent it by turning off JS or editing the code on the fly and b) it
 would also catch xmlrpc cases like Open/Windows Live Writer.

 I'll test to see what happens after your changes, though I'll probably
 wait until it's in a release build.

 The reason I said it feels dirty and prone to breaking is because right
 now we're not reinventing the wheel and touching any of the revision
 functionality - we simply deny some edits from going through and adding an
 error message. Once you start saving the content elsewhere and basically
 emulating saving/restoring revisions, that to me throws a red flag (as in,
 there are probably many more caveats here compared to our solution). It's
 a good suggestion, don't get me wrong, but much more complex IMO.

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


More information about the wp-trac mailing list