The simplest method of adding custom button to CKEditor
This Stack Overflow answer brings you the shortest, the simplest method of adding custom button to CKEditor, that will execute your own Javascript code.
It comes as a ready, twelve-line solution plus a live demo.
You can do this in just a few lines of code and you don’t have to create a separate CKEditor plugin for this.