Text Selection Popup With Pure JavaScript

Author
In CSS Tutorial Nov 30, 2017

A JavaScript plugin that provides a popup menu to textual content picks simply you noticed on Medium.com. Standard use circumstances for this utility come with textual content editor, percentage sharing and extra.

Text Selection Popup With Pure JavaScript

  • Medium Taste Textual content Variety Sharing Library – share-this
  • Medium Impressed Floating Popup For Decided on Textual content – WebClip
  • Medium Taste Inline Wealthy Textual content Editor – Medium Editor
  • Proportion Decided on Textual content On Twitter And Fb – sharect.js

Set up:

# NPM $ npm set up selection-popup --save

Import the library

// ES 2015 import selectionPopup from 'selection-popup'; // CommonJS: const selectionPopup = require('selection-popup');

Elementary utilization:

  • pieces: menu pieces
  • callbacks: click on callbacks for pieces
  • choices: choices array
selectionPopup(pieces, callbacks, choices)

Upload your individual types:

selectionPopup(pieces, callbacks, )

The publish Textual content Variety Popup With Natural JavaScript seemed first on CSS Script.

 

Leave a Reply

Your email address will not be published. Required fields are marked *