I’m trying to add some custom JS functionality to the default “post” editing screen that depends upon TinyMCE being instantiated and ready to rock. If I try to make the changes before TinyMCE is set up, I (obviously) receive JS errors.
Without needing to modify any core files, and ideally using JS/jQuery events alone (i.e. not PHP/WP hooks/filters or polling with JS’ setInterval()
), is there a way to detect when TinyMCE is ready?