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

3 posts, 0 answers
  1. Niteen
    Niteen avatar
    7 posts
    Member since:
    Feb 2017

    Posted 24 Feb 2017 Link to this post


    I am new to kendo mobile and phonegap/cordova.

    I am building a mobile application using phone gap and kendo mobile.

    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.

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

    Please tell me the solution to achieve this.

    Thanks in advance.






  2. Tsvetina
    Tsvetina avatar
    2133 posts

    Posted 27 Feb 2017 Link to this post

    Hello Niteen,

    Working with the clipboard is not something that Kendo UI Mobile / Hybrid UI does. You need to research for a solution specific to Cordova.
    A quick search on my side showed this plugin and related blog post that might help.

    I am leaving this thread open in case anyone from the community wants to share their experience on this subject.

    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Niteen
    Niteen avatar
    7 posts
    Member since:
    Feb 2017

    Posted 03 Mar 2017 in reply to Tsvetina Link to this post

    Thanks Tsvetina for your time, reply and suggestions.

    This is quite complicated requirement. I have searched a lot regarding this on internet but did not found any solution.

    I am seeking help from the community: Cordova + Kendo Mobile developers. Please help.

    Thanks in advance.



Back to Top