I have an Iframe which I have enabled designMode on. Quite simply I would like to have a callback function called if the cursor in the Iframe moves or content changes. It seemed quite simple at first but I can't use onchange/ onkeyup on the Iframe.
I assume I need to add an event to a member of the Iframe. I've tried
frames['writer'].document.body.onkeyup = eventHandler
to no success.
Update
I've found that setting designMode = 'on'
is causing the problems. If I comment out the line that sets designMode to 'on'
then handling events works fine.