Hi

i am writting a wysawyg editor and i have a problem with selection
i have this case:

<p>pippo1</p>
<p>pippo2</p>
<p>pippo3</p>

so i want set focus in pippo1 AND want select all three paragraphs.
So i have set focus with "select_doc.collapse(x[0].firstChild,0);"
where x[0] is pointer to first p and then 
select_doc.extend(x[0].parentNode,3); for to select all 3 paragraph

but with thi lines i don't select that i want!!!
Can you help me?

Thankx stefano
_______________________________________________
mozilla-editor mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-editor

Reply via email to