callum wrote:
> 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?

Use the right presshell?

-Boris
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to