Title: text label for tinyMCE button
Last modified: August 20, 2016

---

# text label for tinyMCE button

 *  [alme1304](https://wordpress.org/support/users/alme1304/)
 * (@alme1304)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/text-label-for-tinymce-button/)
 * Is there a way of have text in a tinyMCE button instead of an image?
    this is
   what I have right now:
 *     ```
       (function() {
               tinymce.create('tinymce.plugins.wrong_right', {
                   init : function(ed, url) {
                       ed.addButton('wrong', {
                           title : 'Add a wrong',
                           //image : url+'/image.png',
                           onclick : function() {
                                ed.selection.setContent('[wrong]' + ed.selection.getContent() + '[/wrong]');
   
                           }
                       });
                       ed.addButton('right', {
                           title : 'Add a right',
                           //image : url+'/image.png',
                           onclick : function() {
                                ed.selection.setContent('[right]' + ed.selection.getContent() + '[/right]');
   
                           }
                       });
                   },
                   createControl : function(n, cm) {
                       return null;
                   },
               });
               tinymce.PluginManager.add('wrong', tinymce.plugins.wrong_right);
               tinymce.PluginManager.add('right', tinymce.plugins.wrong_right);
           })();
       ```
   

The topic ‘text label for tinyMCE button’ is closed to new replies.

## Tags

 * [tinymce](https://wordpress.org/support/topic-tag/tinymce/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [alme1304](https://wordpress.org/support/users/alme1304/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/text-label-for-tinymce-button/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
