Skip to content

A sample WordPress plugin which details adding toolbar buttons to the TinyMCE editor.

Notifications You must be signed in to change notification settings

bernland/WP-TinyMCE-Dev-Starter-Kit

 
 

Repository files navigation

WordPress TinyMCE Editor Button Example

This is a small, but functional, WordPress plugin. It adds a button to the WordPress TinyMCE editor's toolbar which, when clicked, opens a dialog window. This dialog window then inserts a shortcode in the editor.

This plugin was created to accompany a post on my website that I am writing to help my fellow developers utilize TinyMCE to it's fullest in their WordPress plugins.

The source code is heavily commented and documented throughout. If you have a basic understanding of WordPress plugin design and have some exposure to TinyMCE, you can probably figure this out pretty easily from the code. I recommend you start with tinymce-dev-starter.php, then move to tinymce-plugin.js, and finally, end with tinymce-dialog.html.

However, as I mentioned, it is an accompaniement to a tutorial. Check out the tutorial for a step-by-step walkthrough:

  1. How To Create a TinyMCE Editor Dialog Window in a WordPress Plugin
  2. Using jQuery and jQuery UI in TinyMCE Dialog Iframe

About

A sample WordPress plugin which details adding toolbar buttons to the TinyMCE editor.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 54.7%
  • JavaScript 28.4%
  • HTML 16.9%