Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Is it possible to copy and paste the text from a webview in android??

Hi!! Is it possible to select the text from a webview then to copy and paste.Is there any special method to do this??Please help me..

— asked April 19th 2010 by chiru vani
0 Comments

1 Answer

  • Unfortunately that's not possible since copy & paste text in a webView require overriding several native methods that aren't avail in Ti.UI.webView, i.e. Key Listeners (to emulate a shift button, track Android Clipboard's content changes and handle the Android ClipboardManager).

    If you want to implement such task in your sites an option to achieve this would be passing text communicating WebViews & Titanium, have in mind that this is the most expensive component (resources & performance) and Ti.UI.WebViews are meant to display local and remote web content.

    https://wiki.appcelerator.org/display/guides/Communication+Between+WebViews+and+Titanium

    — answered March 5th 2012 by Eduardo Gomez
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.