Opened 6 years ago
Closed 6 years ago
#45348 closed defect (bug) (fixed)
Run the "wp_editor_settings" filter for the Classic block TinyMCE settings
Reported by: | azaozz | Owned by: | azaozz |
---|---|---|---|
Milestone: | 5.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | TinyMCE | Keywords: | has-patch commit fixed-5.0 |
Focuses: | Cc: |
Description
It is meant to filter (unrelated) wp_editor()
settings but accepts an array for tinymce
that adds to/overrides the default TinyMCE settings. Also some plugins may be using it to add other editor filters like mce_external_plugins
, mce_buttons
, etc. A quick GH search shows 47k hits for this filter (most are duplicated code, but still...).
Attachments (2)
Change History (9)
#2
@
6 years ago
- Keywords has-patch added
In 45348.diff:
- Add the
wp_editor_settings
anddisable_captions
filters at the appropriate places. - Add some docs explaining that the settings are used to extend and override the default TinyMCE settings.
Note that this diff also includes Gary's 45338.diff from #45338.
#4
@
6 years ago
45348.2.diff is good to go.
#5
@
6 years ago
- Owner set to azaozz
- Resolution set to fixed
- Status changed from new to closed
In 43914:
Note: See
TracTickets for help on using
tickets.
Another filter that we should keep is
disable_captions
. It just passes a setting from PHP to JS to change how image captions are handled. That seems to be used quite a bit too according to a quick GH search.