Is there a way to force a cursor into the editor window when there isn't any focus on the editor?
I wrote a little function that inserts selected content from outside the editor as a new paragraph at the cursor. This is useful for things like quoting on message boards. It always works fine if there is a cursor, but when I do it without a cursor, it adds an uneditable paragraph before the inserted content.
It seems to me the easiest solution is for me to force focus on the last line of the editor before inserting the outside content, but nothing I've tried with focus() works. Any suggestions?