469,306 Members | 2,608 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,306 developers. It's quick & easy.

Setting Focus....

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
Jul 23 '05 #1
1 1102
On 16 May 2004 02:18:29 -0700, Stefano wrote:
i am writting a WysaWyg editor for Mozilla and i have a problem with
selection.


You also seem to have a bizarre problem with..
<http://www.physci.org/kbd.jsp?key=shift>
...as well.

E.G. i -> I & WysaWyg -> WYSIWYG* ;-)

[ * What You See _Is_ What You Get ]

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

20 posts views Thread by Arne | last post: by
2 posts views Thread by Mystery Man | last post: by
3 posts views Thread by Brian Henry | last post: by
7 posts views Thread by Zytan | last post: by
5 posts views Thread by Finn Stampe Mikkelsen | last post: by
3 posts views Thread by kelvin.koogan | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.