New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/evandrolg/selecting

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/evandrolg/selecting

  • v0.0.8
  • Source
  • Go
  • Socket score

Version published
Created
Source

selecting

A library that allows you to access the text selected by the user.

Instalation

To install SelectingText, execute:

  bower install selecting

Or simply pick up the file from src directory.

Supported Browsers

  • Google Chrome
  • Firefox
  • Internet Explorer 9.0+
  • Safari
  • Opera
  • iOS
  • Android

How to use?

Selecting doesn't depend on jQuery, Zepto or any other library to work. You need just to include it at the end of your HTML code:

  <script src="selecting.js"></script>

Then you can call window.selecting function passing two parameters: an DOM element (jQuery object or NodeList) to listen to and a callback function that receive a Selection object by parameter. For example:

  window.selecting($('.container'), function(selector) {
    ...
  });

Example

See a simple example.

FAQs

Package last updated on 09 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc