When I use setContent on a TinyMCE editor, it sets the focus to that editor control.
var te = tinymce.get('my_id');
te.setContent('new contents');
Any way to prevent this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Looking at the source code (I haven’t used tinymce), I cannot find anything that would set the focus but there are some events that are fired so I think this is worth giving a shot: