I'm looking for a way to replicate to the letter the look and feel of the basicstyle "B" button, but with a different tag (i need to wrap/unwrap the text in the <zzz> tag instead of <strong>).
Right now I created a plugin with the logic
editor.insertHtml('<zzz>' + editor.getSelection().getNative() + '</zzz>');
but it can't remove the tag and I suspect there is a simpler way to obtain this.
Any help?