Suppose i am writing sometext inside a textarea and I want to insert some text inline, inline of text, actually anywhere inline of text "NOT BEFORE" and "NOT IN LAST".
already used jquery().append() type methods.
Note i don't have any string to replace. i actually want to insert fresh text on white space inline of text right on cursor placement without affecting rest of the text formatting.
Right now i am using a jquery function and calling it using a button click and function i am using is specific for tinymce but it inserts the text in last or we can put brefore. but how to do it inline somewhere inside of text?
function insertelement(sometext){
tinyMCE.activeEditor.setContent(tinyMCE.get('content').getContent()+sometext);
}
I hope you got the question.