Zoeken in Support

Vermijd ondersteuningsscams. We zullen u nooit vragen een telefoonnummer te bellen, er een sms naar te sturen of persoonlijke gegevens te delen. Meld verdachte activiteit met de optie ‘Misbruik melden’.

Learn More

Deze conversatie is gearchiveerd. Stel een nieuwe vraag als u hulp nodig hebt.

Getting Text in clipboard to webpage using Clipboard API

  • 1 antwoord
  • 1 heeft dit probleem
  • 72 weergaven
  • Laatste antwoord van TyDraniu

more options

Hello I am currently trying to add a paste button in my site and I tried using Clipboard api to read the clipboard navigator.clipboard.readText() Eventhough it works on other browsers , but it doesn’t on Firefox . So does anyone know a way to get text in clipboard to webpage that is supported in Firefox?

Hello I am currently trying to add a paste button in my site and I tried using Clipboard api to read the clipboard navigator.clipboard.readText() Eventhough it works on other browsers , but it doesn’t on Firefox . So does anyone know a way to get text in clipboard to webpage that is supported in Firefox?

Alle antwoorden (1)

more options

In Firefox it doesn't work from website's javascript. Firefox only supports reading the clipboard in browser extensions, using the "clipboardRead" extension permission.