[wp-trac] [WordPress Trac] #34882: make registered editor stylesheets available to frontend

WordPress Trac noreply at wordpress.org
Thu Jun 9 05:43:57 UTC 2016


#34882: make registered editor stylesheets available to frontend
--------------------------+-----------------------------
 Reporter:  ungestaltbar  |       Owner:
     Type:  enhancement   |      Status:  reopened
 Priority:  normal        |   Milestone:  Future Release
Component:  TinyMCE       |     Version:  4.4
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+-----------------------------

Comment (by webmandesign):

 Hi,

 The reason why I used a filter is due to the fact that I am not sure why
 there is the `is_admin()` check. Might be simple optimization, might be
 something else. And as I didn't want to break anything, I've used the most
 flexible solution to this problem without actually changing the original
 functionality.

 Of course, if `is_admin()` check is not needed there, then I would remove
 it completely. But I don't know the history of it and don't know how to
 find out, sorry.

 But, please, keep in mind that the solution proposed in this ticket would
 mean a theme author needs to register the editor stylesheets twice. Once
 in `add_editor_style()` and second time with `mce_css` filter. This is a
 bit too tedious and brings a question why should we use
 `add_editor_style()` first place. I've described this in [#comment:3 my
 previous comment].

 Regards,

 Oliver

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


More information about the wp-trac mailing list