Page 1 of 2
how to disable copy/paste option
Posted: Fri Nov 30, 2012 10:22 pm
by rammohan.acharyadasa
Hi
i am developing native app using tiggzi.
i want to disable copy/paste option for the content i display on the page.
i got below link for this:
http://kvijayanand.wordpress.com/2011...
Using how can i use option1 ( mentioned in above link) i..e, how to add to the page using tiggzi.
body ondragstart=”return false” onselectstart=”return false”.
how to disable copy/paste option
Posted: Fri Nov 30, 2012 11:14 pm
by maxkatz
It seems to be a solution for desktop browsers.. not mobile apps. There are three ways to add any custom JavaScript:
- Create a new JavaScript file
- Load JavaScript file via URL
- Run JavaScript in action
how to disable copy/paste option
Posted: Fri Nov 30, 2012 11:18 pm
by rammohan.acharyadasa
Max,
i found this link.
pls advice will it work mobile phones?
http://phonegap.pbworks.com/w/page/16...
%3A%20Prevent%20copy%20paste
how to disable copy/paste option
Posted: Fri Nov 30, 2012 11:58 pm
by maxkatz
There is an example in the link you provided:
code
.my_text_element {
-webkit-user-select: text; /* enable copy paste for elements with this class */
}
/code
how to disable copy/paste option
Posted: Fri Apr 18, 2014 5:42 am
by Alex GG
Hello!, Is there any way to disable copy paste on iphone, inside appery.io platform?
I have a grid with labels, images; and while scrolling up or down sometimes the element is marked and copy/paste appear.
I have found several post on stackoverflow, but dont know how to fix this...
http://stackoverflow.com/questions/11...
Regards
how to disable copy/paste option
Posted: Fri Apr 18, 2014 8:24 am
by Kateryna Grynko
Hi Alex,
Run this custom CSS:
pre*{
-webkit-touch-callout: none;
user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
}/pre
how to disable copy/paste option
Posted: Fri Apr 18, 2014 4:10 pm
by Alex GG
how to disable copy/paste option
Posted: Fri Apr 18, 2014 7:46 pm
by Alex GG
Katya,
Is there any way to make this code works on specific pages? because I have a page where user types his name, mail and number, and with this CSS code, now is disabled...
Thanks!
how to disable copy/paste option
Posted: Fri Apr 18, 2014 8:07 pm
by Alex GG
update:
I replaced (*) with .unselectable, and set this class to the container of all the pages except for the one with input data...
thanks!
how to disable copy/paste option
Posted: Fri Apr 18, 2014 8:12 pm
by Maryna Brodina
Thank you! Do you need further help?