[wp-trac] [WordPress Trac] #23198: Pass post format as a class to TinyMCE init

WordPress Trac noreply at wordpress.org
Tue Jan 22 02:37:56 UTC 2013


#23198: Pass post format as a class to TinyMCE init
--------------------------------+------------------
 Reporter:  helen               |       Owner:
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  3.6
Component:  TinyMCE             |     Version:
 Severity:  normal              |  Resolution:
 Keywords:  easy-fix has-patch  |
--------------------------------+------------------

Comment (by adamsilverstein):

 thanks, thats super helpful, seems like it... i'll try to insert that and
 give it a try.  i was just going to traverse the dom down into the iframe
 but this makes much more sense.

 question:

 should post-format-0 even be there, that seems like a bug, shouldn't the
 1st radio id be post-format-standard?

 should i try to fix that or is there for legacy support of some kind, and
 if so should i catch that and rewrite in the js so the applied class is
 post-format-standard? i what will get_post_class() return?

 (this - )
 <input id="post-format-standard" class="post-format" type="radio"
 checked="checked" value="standard" name="post_format">
 instead of
 <input id="post-format-0" class="post-format" type="radio"
 checked="checked" value="0" name="post_format">

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


More information about the wp-trac mailing list