I'm want to know the location of the caret on a page. I currently use
nsIPresShell::GetPrimaryFrameFor( ... ) to find the frame, get an
nsISelectionController from the frame and then use
nsICaret::GetCaretCoordinates( .. )to get the location.

This doesn't work when there are edit fields within iFrames on the
page - the call to  nsIPresShell::GetPrimaryFrameFor( )  fails.

What else do I need to do?
_______________________________________________
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to