Hi,
i am writting a WysaWyg editor for Mozilla and i have a problem with
selection.
When i replace a node, the focus is lost and i want to set focus but
i don't get selection by my code.
Before:
<p>blah <b>blah blah blah</b><a>blah blah</a>blah blah bl blahah</p>
After:
<h2>blah <b>blah blah blah</b><a>blah blah</a>blah blah bl blahah
</h2>
var x=select_doc.focusNode;
var x1=select_doc.anchorNode;
nodep.replaceChild(el,node);
select_doc.collapse(x1,0);
So, can i select at old focus?
Thanks Stefano