[wp-trac] [WordPress Trac] #51258: Fire an action when `replace_editor` is filtered to true

WordPress Trac noreply at wordpress.org
Wed Sep 30 17:38:00 UTC 2020


#51258: Fire an action when `replace_editor` is filtered to true
-------------------------+------------------------------
 Reporter:  jeremyfelt   |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Editor       |     Version:  4.9
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  administration
-------------------------+------------------------------

Comment (by teamdnk):

 > There is no clean opportunity to add markup or other logic. This can be
 done during the filter, but that does not provide a clean pattern,
 especially if one or more pieces of code may be making a decision on
 editor replacement.
 I agree. Currently, this is a problem for us as we are wanting to use a
 standalone block editor tailored for a specific post type. At the moment
 we are using custom actions to implement our own standalone editor, but
 this requires us to re-route all edit related functions and related logic
 to our new action such as `get_edit_post_link()`.

 @jeremyfelt Thanks for the report and patch submission.

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


More information about the wp-trac mailing list