I am sharing this since it was impossible to find with Google. Before CKEditor 4.2 if you wanted to handle the save event with a custom function, you had to write your own plugin. Now all you need to do is to specify the callback upon initialization: