QNimate

  • CoursesVideos
  • WP PremiumPlugins
  • DemosLab
  • Home
  • QIdea
  • QTrack
Home Carbon Ads Disable Copy and Paste in Phonegap

Disable Copy and Paste in Phonegap

This post is a part 24 of Intel XDK Complete Tutorial post series.

While this snippet of CSS you can easily disable copy/paste in phonegap app:

*
{
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

input
{
-webkit-user-select: auto !important;
-khtml-user-select: auto !important;
-moz-user-select: auto !important;
-ms-user-select: auto !important;
user-select: auto !important;
}
Nov 17, 2014Narayan Prusty
WordPress Plugin Activation, Deactivation and Uninstall HooksPush Notifications in Intel XDK using pushMobi
Comments: 4
  1. Marco Eidinger
    5 years ago

    If you want keep text selection and copy&paste within your application BUT you want to prevent people to copy&paste your content to other apps then check out https://github.com/MarcoEidinger/cordova-disable-copy-paste

    ReplyCancel
  2. Dim
    6 years ago

    It’s not copy disable, but selection disable. Also not always work correctly.

    ReplyCancel
  3. deepak
    6 years ago

    dont wrking ylll..

    ReplyCancel
  4. ramyar
    6 years ago

    Hi. I have a website (http://www.elmevarzesh.com) and unfortunately I had to disabled copy and past because of torrents of copying my articles (4000 copies in a week). but many villain people copy from cell phones. so I need a solution to disable copy and past in all cell phones explorers.(Firefox.chrome.opera and so on). please help. thank you so much.

    ReplyCancel

Leave a Reply Cancel reply

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

Narayan Prusty

I am a software engineer specialising in Blockchain, DevOps and Go/JavaScript. This is my personal blog where I write about things that I learn and feel interesting to share.

7 years ago 4 Comments Cordova
Share this
0
GooglePlus
0
Facebook
0
Twitter
0
Linkedin
Related Articles
  • Making a phonegap app look like native app
  • Disable Text Selection in Phonegap
  • Using Intel XDK Find if App is Running in Emulator or Device
  • Intel XDK Copy to Clipboard
  • Find Internet Connection Type Using Intel XDK
Our Sponsor
My Books

2014 - 2015 © QNimate
All tutorials MIT license