Hi all, I was experimenting with what it would take to build a copy paste UI in javascript, and came up with this: http://kevingrandon.github.io/Firefox-OS-Clipboard/ (It should work fine in a firefox browser). Just hold your mouse button over text to activate the UI.
Obviously this is only a prototype, but I assume something like this could work the same way forms.js does. Some info: - This requires gecko 20 for document.caretPositionFromPoint. - I'm not sure if we need any API for this functionality, but some work on the selection object would be very nice. Ideally we could support getClientRects for input/textarea solutions. Something like IE's createTextRange (http://msdn.microsoft.com/en-us/library/ie/ms536401%28v=vs.85%29.aspx) could do the trick, but maybe there's room to standardize something. Anyway, just wanted to send that out in case anyone was interested. Best, Kevin Grandon _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
