MCPcopy Create free account
hub / github.com/clair-design/clair / createTextArea

Function createTextArea

docs/plugins/scripts/tiny-copy.js:4–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2 * create a temp textarea
3 */
4const createTextArea = () => {
5 const elem = document.createElement('textarea')
6
7 elem.style.width = 1
8 elem.style.height = 0
9 document.body.appendChild(elem)
10
11 return elem
12}
13
14/**
15 * exec copy command

Callers 1

copyFromTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected