In IE you can use ..moveStart('word' ,1).. to select the next word, is there anything similar avalible for midas.

text: the big red dog
html: <b>the big red d<i>o</i>g

ie if the word 'red' is selected how can i wrap a range around the word 'dog'


Looking at the docs it seems all the methods are based around the DOM and not the actuall words ie the selection object only returns nodes and position in the node not 'start of word' or 'end of word'

Related Docs
http://www.mozilla.org/docs/dom/domref/dom_range_ref.html#998975
http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/movestart.asp



Thanks

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

Reply via email to