Search code examples
javascriptiphoneselectioncopy-paste

Disabling "block selection" on an iPhone


I am building an app for iPhone that has JavaScript running in a webview. When the new auto-select block selection tool is used to select text, and the block is resized from the side, it makes my JavaScript freak out. Does anyone know a way to disable the copy/paste for block selection? I still need to be able to select the text, just not using the big selection tool.

Thanks


Solution

  • To my knowledge, there is nothing in the UIWebView API to allow this. Your best bet is probably to tweak it from the JS side of things.