Join the AMA (Ask Me Anything) with Firefox leadership team to talk about Firefox priorities in 2024. Mark your calendar! Thursday, June 13, 17:00 - 19:00 UTC.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

Learn More

Getting Text in clipboard to webpage using Clipboard API

  • 1 réponse
  • 1 a ce problème
  • 72 vues
  • Dernière réponse par 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?

Toutes les réponses (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.