471,893 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,893 software developers and data experts.

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 1121
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 zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.