Opened 8 years ago
Closed 8 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 |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.0 |
| Component: | TinyMCE | Version: | |
| Severity: | normal | Keywords: | has-patch commit fixed-5.0 |
| Cc: | Focuses: |
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
@
8 years ago
- Keywords has-patch added
In 45348.diff:
- Add the
wp_editor_settingsanddisable_captionsfilters 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
@
8 years ago
45348.2.diff is good to go.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.