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:
// Do something here, for example:
// If you want to prevent the form submit (if your editor is in a <form> element), return false here
A quick note for all googlers: If you happen to stumble upon this error when using the great YoxView plugin for jQuery, make sure you don’t put the script in a folder that has “jquery.yoxview” in it’s name. There’s a bug in the script which uses a loose regular expression, which, when provided the following URL
and thus will try to request the language files from e.g. http://example.com/js/lang/en.js
I have the habit of unzipping the archive and using a full script name + version for the folder name, which has the benefit, that when you change the script version, all your returning visitors will definitely get the latest script since the cache for it will not exist.
Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!
$code = new Test();
Everything seems to be in finest order, Sire!