Skip to content
This repository has been archived by the owner on Sep 12, 2018. It is now read-only.

Kikobeats/tweet-selection

Repository files navigation

tweet-selection


tweet-selection

Last version Dev Dependencies Status NPM Status Donate

Tweet selected text. Like Medium but out of the box.

Install

npm install tweet-selection --save

or

bower install tweet-selection --save

Usage

Note: You need to use a DOM Selector.

API and default values are:

$('.content').tweetSelection({
  height: 300,
  width: 600,
  minimumTextSelected: 3,
  shareClass: '.tweet-selection',
  ellipsis: '…',
  quoteLeft: '“',
  quoteRight: '”'
})

Also support the rest of the query optional parameters for Tweet Web intent.

Related

  • TweetThis - Allows visitors to tweet text content on your webpage by highlighting it.

License

MIT © Kiko Beats