# maxbuttons/7.13.2/js/tinymce.js

MaxButtons – Create buttons, version 7.13.2. 25 lines.

- Page: https://pluginprobe.com/plugins/maxbuttons/7.13.2/code/js/tinymce.js
- Raw: https://pluginprobe.com/plugins/maxbuttons/7.13.2/raw/js/tinymce.js
- Modified: 2018-11-15T10:55:02+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/maxbuttons/7.13.2/code/js/tinymce.js#L10-L20`.

```javascript
(function() {
     /* Register the buttons */
     tinymce.create('tinymce.plugins.maxButtons', {
          init : function(ed, url) {
               /**
               * Inserts shortcode content
               */
               ed.addButton( 'maxbutton', {
                    title : 'Insert MaxButton',
                    image : (typeof mbtrans !== 'undefined') ? mbtrans.icon : null,
                    onclick : function() {
                        var mm = new window.maxFoundry.maxMedia();
                 				mm.init();
                 				mm.openModal();
                    }
               });
          },
          createControl : function(n, cm) {
               return null;
          },
     });
     /* Start the buttons */
     tinymce.PluginManager.add( 'maxButtons_tinymce', tinymce.plugins.maxButtons );
})();

```
