and I would like to do something like the following:
I'm having serious difficulty figuring out how to select all text of
an editable element like this... the above method does not actually
I've explored a lot of options... all have been dead ends.
Tried using the DOM2 Range object created by document.createTextRange
() method and its selectNodeContents() method... but this doesn't
seem to actually control highlighting on the screen (please correct
me if I'm wrong)
It looks like safari does not support the IE TextRange object
returned by document.body.createRange() (again, correct me if I'm
wrong) or else I could try calling execCommand("SelectAll") on the
I see that you _can_ call execCommand("SelectAll") on the document
object... but i don't see anyway way to associate this with just a
specific node or text range.
Can anyone please post and example of how you achieve this effect?