@kanety/pick-text
v1.1.0
Published
Select and copy text from html element
Downloads
38
Readme
pick-text
Select and copy text from html element.
Installation
Install from npm:
$ npm install @kanety/pick-text --save
Usage
<div id="target">sample text</div>
import PickText from '@kanety/pick-text';
PickText.run('#target');
Options
Disable copy:
PickText.run('#target', { copy: false });
License
The library is available as open source under the terms of the MIT License.