I've visited this Demo
It looks fine, but I get confused by a little typo in the script. For example select a text in the editor and apply "redText" class. The console prints that
OnClientCommandExecuted is executed twice, actually the second one is OnClientCommandExecuting.
Can you fix that little typo in the scripts.js in the demo?