[wp-trac] [WordPress Trac] #28037: Editor merges paragraphs when post edit screen is accessed by pressing browser's back button

WordPress Trac noreply at wordpress.org
Sun Apr 27 00:07:23 UTC 2014


#28037: Editor merges paragraphs when post edit screen is accessed by pressing
browser's back button
--------------------------+-----------------------------------------
 Reporter:  dbernar1      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.0
Component:  Editor        |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  javascript, administration
--------------------------+-----------------------------------------

Comment (by azaozz):

 Testing more: even setting the textarea to `disabled` or `readonly`
 doesn't stop Chrome from overwriting the content.

 28037.patch resets the textarea value to the initial content by using
 textarea.textContent. Seems to work properly for Chrome for now but needs
 more testing, especially in other WebKit browsers.

 Still, the best fix is to set `autocomplete="off"` on the form in Chrome.
 Can also be done with `'post_edit_form_tag'` from a plugin.

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


More information about the wp-trac mailing list