onCleanup fires too late for working with inline ckeditor
I'm using a colorbox with a drupal install on a form that uses ckeditor - loading individual inline fields into the colorbox to edit.
I have to disable the rich text editor until the field has been moved to the colorbox, and then disable it before the field is moved back, otherwise the value gets lost. this worked fine when I did it manually, but having it disable rich text via onCleanup didn't work. Looking at the code, it's because $.event.trigger(event_cleanup); is triggered before the callbacks that I added. It seems like callbacks added in this way should get priority, no?
to get around it, i switched the order of the cleanup callbacks in my src, but this is obviously not optimal...
I agree with what you are saying. In the future onCleanup will come first.
This is driving me crazy!