I am working with dojo editor. And I have a problem so could you help me to solve this problem.
My problem is: how can I add event listener to tag that I input to the editor such as onClick, onMouseover, etc...
For Example : I input an image tag to the editor content:
var ed=dijit.byId("myEditor"); //my editor has id id myEditor
var img = "<img src='myPic.jpg' alt='' id='myPic'/>"; //my image tag
ed.forcus();
ed.execCommand("inserthtml", img); //insert image tag into editor content
After inserting image tag to the editor, now I want to add "click" event to it, because i want click that image and a small tooltip showed to choose align that image left or right.
Thanks for any suggestion!