Open martgnz opened 9 years ago
Yep, shouldn't be hard. PR welcome :-)
Sharing one word works in my fork of SelectionMenu that addresses a few other issues from selection-sharer and makes it general (i.e you can put anything you want in the menu).
Check out the minlength
property.
Why not give a direct link to the source? https://github.com/iDoRecall/selection-menu/blob/gh-pages/src/selection-menu.js#L132 https://github.com/iDoRecall/selection-menu/blob/gh-pages/src/selection-menu.js#L181
For the repo here it should be:
https://github.com/xdamman/selection-sharer/blob/master/src/selection-sharer.js#L145
Removing the selection.length>10
part should do it.
The behaviour of Medium makes the popup appear when you select only one word. It's possible to adjust this plugin to do the same?
Thanks