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

WordPress Trac noreply at wordpress.org
Mon Jan 21 23:10:48 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 azaozz):

 > What about when the post format is changed while editing the post? Will
 the tinymce class be updated?

 Good question. In the spirit of WYSIWYG-ness thinking we should change the
 body class in the Visual editor dynamically when the post format is
 changed.

 > Also, are there classes that get added to body_class or post_class that
 should be added? Should we rather populate the init with post_class()?

 Not sure it's a good idea to add everything from `post_class()` to the
 body in TinyMCE. It is intended for the front-end and not intended for the
 body tag, so risking to bring compatibility problems. Also themes may not
 use `post_class()`. More advanced themes can add a body class to the
 editor with the init options for TinyMCE.

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


More information about the wp-trac mailing list