I've found a solution, in the config object I've added:
style_formats: [{title: 'Special Classes',
items: [
{title: 'Lighbox', selector: 'a', 'classes': 'lightbox'}
]}
In this way, if I select an a tag and add the format "Lightbox" it adds the class to the right element without adding the span element.