MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / writeClipboard

Function writeClipboard

docs/components/editor.js:366–370  ·  view source on GitHub ↗
(e, p)

Source from the content-addressed store, hash-verified

364 };
365
366 const writeClipboard = (e, p) => {
367 e.preventDefault();
368 e.clipboardData.setData('text/plain', p.plain);
369 e.clipboardData.setData('text/html', p.html);
370 };
371
372 ed.addEventListener('copy', (e) => {
373 const p = copyPayload(); if (p) writeClipboard(e, p);

Callers 1

createEditorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected