I have created a custom button for TinyMCE and I would like it to use the Twitter icon from dashicons. I am hoping to be able to do this just through the Javascript with no additional CSS. Is this possible?
Here is my current(non-working) attempt:
(function () {
tinymce.PluginManager.add('twitter_button_plugin', function (editor, url) {
editor.addButton('mce_tweet_button', {
title: 'Insert tweet',
icon: 'dashicons dashicons-twitter',
onclick: function() {
...
}
});
});
})();