Important changes to Tiny Cloud pricing > Find out more

NOTE: TinyMCE 5 reached End of Support in April 2023. No more bug fixes, security updates, or new features will be introduced to TinyMCE 5. We recommend you upgrade to TinyMCE 6 or consider TinyMCE 5 Long Term Support (LTS) if you need more time.

Custom toolbar menu button

This example shows you how to add a simple menu button to TinyMCE's toolbar.

Contribute to this page

This example shows you how to add a simple menu button to TinyMCE’s toolbar. This demo inserts text at the cursor. The live demo’s JS tab also shows you how to add sub-menus to a menu item.

Can't find what you're looking for? Let us know.

Except as otherwise noted, the content of this page is licensed under the Creative Commons BY-NC-SA 3.0 License, and code samples are licensed under the Apache 2.0 License.