I still canβt find any documentation, but after poking the insides of the CKEditor instance, I managed to find the event I'm looking for:
instance.on('mode', function() {
// Code to execute when the user switches editing modes
}
. , , source ( instance.execCommand(...), , source).