How to Add a Table Button and Other Tools to the Classic Editor
Content
Many users of the Classic Editor plugin find that certain tools, like a table button, are missing from the toolbar by default. This is a common point of confusion, as the Classic Editor itself does not include these advanced formatting features. This guide explains why this happens and provides the most effective solutions to extend the editor's functionality.
Why Certain Buttons Are Missing
The WordPress Classic Editor is built on a platform called TinyMCE. Out of the box, this platform includes a standard set of buttons. More advanced features, such as creating tables, adding underline formatting, or inserting superscript text, are not part of the core TinyMCE package included with WordPress. These features are considered external "plugins" for TinyMCE and must be loaded separately.
Common Solutions to Extend the Toolbar
1. Use the TinyMCE Advanced Plugin (Recommended)
The most straightforward method for adding buttons like 'table', 'underline', and 'superscript' is to use the TinyMCE Advanced plugin. This plugin is specifically designed to manage the TinyMCE toolbar and enables a wide array of additional buttons that are not available by default.
- How it works: After installing and activating TinyMCE Advanced, navigate to Settings > TinyMCE Advanced in your WordPress dashboard. Here, you can drag and drop buttons onto your preferred toolbar layout.
- Bonus: This solution also works when using the Classic Editor block within the modern Block Editor (Gutenberg), allowing you to maintain a consistent editing experience.
2. Custom Code Solution (For Developers)
For those comfortable with code, it is possible to add specific buttons by modifying your theme's functions.php file or creating a custom plugin. However, as noted in the support threads, simply adding a button to the array is not enough. You must also ensure the corresponding TinyMCE plugin is loaded.
Example Code for Adding a Table Button:
// First, add the 'table' button to the toolbar
function add_table_button( $buttons ) {
array_push( $buttons, 'table' );
return $buttons;
}
add_filter( 'mce_buttons', 'add_table_button' );
// Second, load the necessary TinyMCE table plugin
function load_table_plugin( $plugin_array ) {
$plugin_array['table'] = includes_url( 'js/tinymce/plugins/table/plugin.min.js' );
return $plugin_array;
}
add_filter( 'mce_external_plugins', 'load_table_plugin' );
Important Note: The availability of the TinyMCE table plugin at the specified WordPress path can vary between versions. This method may not be reliable long-term and is generally considered more advanced than using a dedicated plugin like TinyMCE Advanced.
What Doesn't Work
- There is no setting within the Classic Editor plugin's options to enable these features. The plugin provides the interface but not the extended tools.
- Pasting code that only adds the button to the toolbar without loading the necessary external plugin will not work, as the functionality will not be present.
Conclusion
If you find your Classic Editor toolbar is missing essential tools, the TinyMCE Advanced plugin is the most reliable and user-friendly solution. For developers with specific needs, custom code is an option but requires careful implementation. The Classic Editor team does not maintain these additional TinyMCE features, so using a well-supported plugin is often the best path to a stable and feature-rich editing experience.
Related Support Threads Support
-
Classic Editor: change layouthttps://wordpress.org/support/topic/classic-editor-change-layout/
-
Thanks!https://wordpress.org/support/topic/thanks-2552/
-
How to add an insert/edit table button?https://wordpress.org/support/topic/how-to-add-an-insert-edit-table-button/
-
Add this feature pleasehttps://wordpress.org/support/topic/add-this-feature-please/
-
This plugin should be added to corehttps://wordpress.org/support/topic/this-plugin-should-be-added-to-core/
-
How to add your own preset to the classic wp editor?https://wordpress.org/support/topic/how-to-add-your-own-preset-to-the-classic-wp-editor/
-
add shortcodehttps://wordpress.org/support/topic/add-shortcode-12/
-
Adding format optionshttps://wordpress.org/support/topic/adding-format-options/
-
line break after bullet listhttps://wordpress.org/support/topic/line-break-after-bullet-list/
-
Classic Editor adds extra classes to tagshttps://wordpress.org/support/topic/classic-editor-adds-extra-classes-to-tags/
-
How to add a shortcode on the sidebar?https://wordpress.org/support/topic/how-to-add-a-shortcode-on-the-sidebar/
-
Advanced Link Optionshttps://wordpress.org/support/topic/advanced-link-options/
-
Font presetshttps://wordpress.org/support/topic/font-presets/
-
Add More styles to drop downhttps://wordpress.org/support/topic/add-more-styles-to-drop-down/
-
Classic Editor: Toolbar Functionshttps://wordpress.org/support/topic/classic-editor-toolbar-functions/
-
Add Table icon in the toolbarhttps://wordpress.org/support/topic/add-table-icon-in-the-toolbar/
-
add additional class to a paragraphhttps://wordpress.org/support/topic/add-additional-class-to-a-paragraph/
-
missing option in toolbar to make or edit a tablehttps://wordpress.org/support/topic/missing-option-in-toolbar/
-
Missing options in classic editor menuhttps://wordpress.org/support/topic/missing-options-in-classic-editor-menu/