Opened 7 years ago
Closed 7 years ago
#42119 closed task (blessed) (fixed)
Add filter to allow replacing the editor
Reported by: | azaozz | Owned by: | pento |
---|---|---|---|
Milestone: | 4.9 | Priority: | normal |
Severity: | normal | Version: | 4.9 |
Component: | Editor | Keywords: | has-patch |
Focuses: | Cc: |
Description
Currently there is no straightforward way to fully replace the editor and the UI around it. A boolean filter before loading the editor template (edit-form-advanced.php
) will make this possible.
Attachments (3)
Change History (9)
#1
@
7 years ago
- Keywords has-patch added
In 42119.patch: add replace_editor
filter. If it returns true
do not include edit-form-advanced.php
, let the plugin supply the Edit Post template.
#2
follow-up:
↓ 3
@
7 years ago
@danieltj ugh, we doubled?
It's not enough to just replace TinyMCE. This can be done currently. This should allow replacement of the whole editor template. It opens possibilities to do "reduced" editor screens, custom editor layouts for specific post types, etc.
#3
in reply to:
↑ 2
@
7 years ago
Replying to azaozz:
@danieltj ugh, we doubled?
It's not enough to just replace TinyMCE. This can be done currently. This should allow replacement of the whole editor template. It opens possibilities to do "reduced" editor screens, custom editor layouts for specific post types, etc.
Yeah, you beat me by a minute or so!
Ah I see, that makes sense - my understanding of it was the editor itself, not the entire template. My mistake.
Adds filter for the post editor to swap out to another.