Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Adjusting the TinyMCE editor options

Koen edited this page Aug 1, 2019 · 2 revisions

Tailoring options in the WYSIWYG editor to a project is always a good idea. This way you can limit the amount of heading levels a user can select, or add a proper class for intro paragraphs. WordPress uses TinyMCE, to adjust:

Adjusting the global editor options

  • Go to Grrr\Utils\AdminEditor
  • Uncomment or adjust the predefined options, or make your own adjustments

Check the TinyMCE documentation for all available options.

Adjusting the editor in ACF

The TinyMCE editor used by ACF takes most of the globally configured options like block_formats. However, to adjust the toolbars, you'll need to adjust both the regular TinyMCE editor, as well as the one used in ACF. This is needed to add style_formats. To do so:

  • Go to Grrr\Acf\WysiwygToolbars
  • Enable the commented out hook and adjust the settings accordingly