[wp-trac] [WordPress Trac] #22541: Media icon doesn't work in distraction free writing mode

WordPress Trac noreply at wordpress.org
Mon Nov 26 17:11:18 UTC 2012


#22541: Media icon doesn't work in distraction free writing mode
--------------------------+--------------------
 Reporter:  ericmann      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.5
Component:  Media         |     Version:  trunk
 Severity:  blocker       |  Resolution:
 Keywords:  needs-patch   |
--------------------------+--------------------

Comment (by koopersmith):

 Replying to [comment:5 azaozz]:
 > However the original button also has `data-editor="..."` which would be
 harder to set in these cases. Not sure why it's there, seems
 `wpActiveEditor` can be used instead.

 `data-editor` is used to track the instance of the media frame that the
 button will open. It's possible to click a button without switching
 `wpActiveEditor`. That said, we should probably default that property to
 the `wpActiveEditor` if it's empty or not provided.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22541#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list