[wp-trac] [WordPress Trac] #22266: onbeforeunload alert always triggers with attachments
WordPress Trac
noreply at wordpress.org
Thu Nov 8 15:30:34 UTC 2012
#22266: onbeforeunload alert always triggers with attachments
--------------------------+--------------------
Reporter: duck_ | Owner:
Type: defect (bug) | Status: new
Priority: high | Milestone: 3.5
Component: Media | Version: trunk
Severity: blocker | Resolution:
Keywords: |
--------------------------+--------------------
Comment (by azaozz):
Discussed this with @koopersmith in IRC. Only happens when the user opens
an existing post for editing but doesn't edit anything, caused by the
replacement of the shortcodes with "views" when the editor loads the
initial content.
There is a way to tell TinyMCE the content wasn't modified which will
cancel the beforeunload event. We need a bit more logic to make sure the
user hasn't started typing before all shortcodes were replaced with views.
Patch coming soon.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22266#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list