This is a migrated thread and some comments may be shown as answers.

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

2 Answers 315 Views
View
This is a migrated thread and some comments may be shown as answers.
Niteen
Top achievements
Rank 1
Niteen asked on 24 Feb 2017, 07:52 AM

Hi,

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.

Niteen

 

 

 

 

2 Answers, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 27 Feb 2017, 04:36 PM
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.

Regards,
Tsvetina
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.
0
Niteen
Top achievements
Rank 1
answered on 03 Mar 2017, 08:20 AM

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.

Niteen

 

Tags
View
Asked by
Niteen
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Niteen
Top achievements
Rank 1
Share this question
or