Probably take a look at the Tiny MCE forums, for information about how to run custom javascript events.
This isn't so much a Moodle issue, because it uses a plugin for the rich text box.
Probably take a look at the Tiny MCE forums, for information about how to run custom javascript events.
This isn't so much a Moodle issue, because it uses a plugin for the rich text box.