Skip to content

afeiship/copy-selection-element

Repository files navigation

copy-selection-element

Copy html from selection element.

version license size download

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.