1.0.1 • Published 6 months ago
@jswork/copy-selection-element v1.0.1
copy-selection-element
Copy html from selection element.
installation
npm install @jswork/copy-selection-element
usage
import copySelectionElement from "@jswork/copy-selection-element";
const el = document.querySelector(".content");
const successful = copySelectionElement(el);
if (successful) {
// do somthing...
}
license
Code released under the MIT license.
1.0.1
6 months ago