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

WordPress Trac noreply at wordpress.org
Tue Nov 24 17:18:43 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
-------------------------+------------------------------
Changes (by jeremyfelt):

 * keywords:  has-patch reporter-feedback => has-patch


Comment:

 Replying to [comment:2 noisysocks]:
 > Hi @jeremyfelt. Do the `enqueue_block_editor_assets` or
 `enqueue_block_assets` actions not suit your use case?

 In this use case, `replace_editor` is filtered to `true`, so the block
 editor is not loaded and neither of those actions are available.

 A `replaced_editor` action would be used to render markup and scripts for
 a completely different editor.

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


More information about the wp-trac mailing list