Home Forums General XMetaL Discussion Getting Cursor Position Reply To: Getting Cursor Position

S. Strube

Reply to: Getting Cursor Position

I haven't tried this myself, but how about using the JScript string object to do a string comparison of Selection.Text and Selection.ContainerNode.xml (which is actually a property of DOMElement, not DOMNOde).  I never can remember the string-comparison functions on String, either, but I'm thinking of the one that will tell you the position where STR1 occurs within STR2.

Thank you mag for your suggest, but comparing the selection.Text does not really work, as the pure XML (e.g. selection is in an empty

) may occur several times in the same XML.

I will have a look at Derek's suggestion to turn the FormattingUpdating off.

Thanks,
Stefan

Reply

Products
Downloads
Support