How would I go about simulating a keypress within my editable iframe? (Same domain.)
The iframe has designmode on, and the body is being used as a text field for an RTE.
I have a feeling I need to use the trigger function from jquery, but I am unable to get it to work.
$('#editor body').trigger({type: 'keypress', which: 13, keyCode: 13});
EDIT: Apparently this isn't possible. Is there any way to make an iframe scroll to the cursor's position without pressing a key?