gocodebox / lifterlms

LifterLMS, a WordPress LMS Solution: Easily create, sell, and protect engaging online courses.
https://lifterlms.com
GNU General Public License v3.0
181 stars 135 forks source link

Disable copy protection for input and textarea fields. #2791

Open ideadude opened 1 week ago

ideadude commented 1 week ago

Description

The copy protection Javascript has been updated to exclude INPUT and TEXTAREA elements. This will allow users to copy email and address fields and other things in text boxes that typically don't need to have copy protection.

How has this been tested?

Manually. Go to the checkout page. Try to copy some text on the page. You will instead have "Copying is not allowed." your clipboard. Now type something into the email field and try to copy that. You will have the actual copied text.

I haven't tested this yet. There is a unit test related to the copy protection feature. It may fail now. We can think about updating or removing that test.

Checklist: