[webkit-dev] DnD Help Please with WebKit
arvinb at columbus.rr.com
Fri Mar 8 09:46:25 PST 2013
My Fellow Community - I am in some need of assistance here. I am certain
this is something simple, but am just missing the mark. So please help.
On Mac OS X 10.7 or greater, I have a webview as a browser. In that webview
I navigate to Gmail. In Gmail I compose a message and then drag and drop one
or more files into the compose box.
The pasteboard has NSURL object(s) and the webview simply takes the absolute
string value and pastes it into the composed message body. For other edit
areas like the search bar and such this behavior is accepted.
It is desired that the drag triggers the HTML5 when mousing over and the
is consistent with how FireFox, Safari, and OmniWeb perform.
How do I get this same consistent behavior / What do I need to implement?
What I have tried so far:
* Using the WebView Editing Delegate I tried replacing the markup in the
* I subclassed WebView to override performDragging: and modify the
* Turned on LocalStorage using the WebView preferences private methods
Note: The app will be sandboxed and currently is not code signed.
So what am I missing or better yet where do I start and end?
P.S. I have tried so many things, I didn't want to clutter this question up
with the useless code snippets I have tried thus far. However, if solved I
will post my results for all others.
Q Posted here too:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev