I have a problem with dijit editor of dojo:
I used execCommand to insert html content at the cursor in editor like :
var ed = dijit.byId('myEditor');
var myDiv = "<div id='myDiv'> This is content of div </div>"
ed.focus();
ed.execCommand("inserthtml", myDiv);
myDiv is inserted successfully into the editor, but when I type other content in the editor, that content is within myDiv. So could you tell me how can I move the selection to be after that div ?
Thank you for help !
If you mean you want to place cursor after your inserted div , then try:
Did you mean something like this