Setting Focus....

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Stefano

    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.fo cusNode;
    var x1=select_doc.a nchorNode;
    nodep.replaceCh ild(el,node);

    select_doc.coll apse(x1,0);


    So, can i select at old focus?
    Thanks Stefano
  • Andrew Thompson

    #2
    Re: Setting Focus....

    On 16 May 2004 02:18:29 -0700, Stefano wrote:
    [color=blue]
    > i am writting a WysaWyg editor for Mozilla and i have a problem with
    > selection.[/color]

    You also seem to have a bizarre problem with..
    <http://www.physci.org/kbd.jsp?key=shi ft>
    ...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

    Comment

    Working...