Command
Description
Command is an interface for extending the toolbar with your own commands. You must supply the Editor.addCommand method with an object that implements these methods. Note that you only need to implement those methods that you need, becauseContent Editor internally extends a base command class with the command you supply. Content Editor also automatically runs your code for commands wrapped in transactions.