2 Replies Latest reply on Mar 9, 2017 10:30 PM by niteensapkal

    Disable Copy and Paste in Phonegap/Cordova but keeping text selection On



      I am new to phonegap/cordova.

      I am building a mobile application using phone gap.

      I have a requirement that I want to let user to select text in mobile view but instated showing native clipboard (share/copy/paste) I need to show my menu options to the user.

      I tried with restricting user to select text to disable copy/paste options by setting

      -webkit-user-select: none;
      -khtml-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;

      but after that I am not able to select the text.

      If I set,


      -webkit-user-select: text;

      -khtml-user-select: text;

      -moz-user-select: text;

      -ms-user-select: text;

      user-select: text;



      it's allowing me text selection but it shows android's/ios's clipboard manager.


      I need to override this functionality and want to hide default clipboard manger and want to show my custom one.


      How can I achieve the text selection functionality without showing native copy/paste clipboard?

      Please tell me the solution to achieve this.

      Thanks in advance.