[wp-trac] [WordPress Trac] #34882: make registered editor stylesheets available to frontend
WordPress Trac
noreply at wordpress.org
Tue Jul 2 13:14:52 UTC 2019
#34882: make registered editor stylesheets available to frontend
--------------------------+-----------------------
Reporter: ungestaltbar | Owner: (none)
Type: enhancement | Status: reopened
Priority: normal | Milestone: 5.3
Component: TinyMCE | Version: 4.4
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+-----------------------
Changes (by azaozz):
* milestone: => 5.3
Comment:
Fixing this is not as easy as it looks :)
The `add_editor_style()` and `editor-style.css` are specifically for the
editor instance on the old Edit Post screen. If we suddenly add these
styles to front-end instances of the editor (by removing the is_admin()
conditional), chances are something will break or not match well.
On the other hand WP shouldn't prevent plugins to add these editor
specific styles to front-end instances, even if not specifically tested by
the theme. Thinking the solution proposed in the ticket description is
preferable. It allows themes to always register `editor-style.css`, and
plugins to decide where to add it.
Patch coming up.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34882#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list