Atto Plugin: name the button, when different from plugin name

Atto Plugin: name the button, when different from plugin name

by David North -
Number of replies: 1

I have a custom atto editor plugin. There are multiple buttons in the plugin.

I know by default it sets the buttonName and title to this.title. Which is the $string['pluginname'] variable.

How do I set the name for the plugin, if I want it to be different from $string['pluginname']?


this.addButton({
            icon: 'lightbulb',
            iconComponent: 'atto_styler',
            title: 'lightbulb_bullets',
            buttonName: 'lightbulb_bullets',
            tags: '.lightbulb-bullets',
            callback: this.toggleLightbulbBullets
        });

When hovering over the button on the editor, the title is:

"lightbulb_bullets, atto_styler"

atto_styler is the name of the plugin. I have the $string['lightbulb_bullets'] in my language file. Purged caches multiple times. Tried everything but can't seem to figure it out.


Does anyone know what is happening?

Average of ratings: -
In reply to David North

Re: Atto Plugin: name the button, when different from plugin name

by David North -
Sorry the title above is supposed to read [ [ lightbulb_bullets, atto_styler ] ] with the square brackets


There isn't actually spaces but I had to add them so that the editor doesn't remove the square brackets and make it a link.