I am using following codes to fetch the conent of tinymce.
tinymce_content=tinyMCE.get('txt_area_id').getContent();
updated_content=tinymce_content+"<img src="sample.jpg">";
By using above codes i am inserting image inside tinymce content.
Question: How to insert image in the cursor position inside tinymce (ie) How to predict cursor position and split the content to insert image between fetched content.
Thanks in advance