Skip to content

This WordPress plugin selectively enables text selection within specific HTML elements, safeguarding content integrity while allowing administrators unrestricted access.

License

Notifications You must be signed in to change notification settings

thegulshankumar/disable-text-selection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disable Text Selection Plugin 🚫📝

WordPress Plugin Downloads WordPress Plugin Active Installs

Easily control text selection on your WordPress site to safeguard content and protect intellectual property


Table of Contents

Description

This WordPress plugin controls text selection on your website by allowing users to select text only within specific HTML elements, effectively protecting your content. By preventing unauthorized copying, you can maintain the integrity of your work. Additionally, this plugin helps prevent content copying through browser extensions or by disabling JavaScript, further enhancing your content protection strategy. Administrators retain full text selection capabilities, ensuring that the functionality of your site remains intact. With a focus on enhancing user experience, this tool effectively protects your intellectual property without compromising accessibility.

Features

  • Allowed Elements:

    • <form>
    • <input>
    • <textarea>
    • <pre>
    • <code>
  • Selection Control:

    • Text selection is disabled on normal paragraphs to prevent unauthorized copying of your content.
    • If selected text exceeds ten characters in allowed areas, it will be cleared.
  • Full Text Selection:

    • The CTRL + A (or Command + A on Mac) shortcut is allowed within input fields and text areas.
  • Shift-Drag Support:

    • Users can select text by clicking and dragging within allowed elements while holding the Shift key.

Note

Once activated, the plugin will manage text selection according to the specified rules, enhancing user interaction while preventing the unauthorized copying of your content.

Installation

  1. Download the plugin from the WordPress Plugin Repository.
  2. Upload the disable-text-selection folder to the /wp-content/plugins/ directory.
  3. Activate the plugin through the 'Plugins' menu in WordPress.

Support

For any questions or support requests, please open an issue in the plugin’s repository or contact the plugin author.

About

This WordPress plugin selectively enables text selection within specific HTML elements, safeguarding content integrity while allowing administrators unrestricted access.

Resources

License

Stars

Watchers

Forks

Packages

No packages published