Directory / plugin

KDA Custom Editor Buttons

v1.7.0 · by deniskey

Custom TinyMCE toolbar buttons and Formats for the Classic Editor — wrap, insert templates, add classes, or open a code snippet dialog.

View on WordPress.org

About this plugin

KDA Custom Editor Buttons lets you define your own Classic Editor controls:

  • Wrap selection in any tag / CSS class
  • Insert HTML templates (e.g. definition lists)
  • Add a class to the current block (optionally with a tag)
  • Open a code snippet dialog (language, line numbers, edit in place)
  • Show each control on the toolbar, in Formats, or both
  • Limit buttons to selected post types (including custom types such as articles)

Front-end CSS still belongs to your theme if you want a custom look; the plugin ships a neutral snippet window, Copy, line numbers, and token colors. Prism.js and Highlight.js are bundled, so nothing is loaded from a CDN. The admin UI is English and can be translated through translate.wordpress.org.

Plugin tags