搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

ReadText is not available for clipboard

  • 1 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 TyDraniu

more options

Clipboard API only support writeText and not readText for web content. I believe this is "feature". However in Chromium there is pop-up asking for permissions, which sounds like much better option. Is there any way how to get permissions and use clipboard fully? Documentation mentions something about getting permissions, but I was never successful with it - is it possible or is it only for extensions?

Clipboard API only support writeText and not readText for web content. I believe this is "feature". However in Chromium there is pop-up asking for permissions, which sounds like much better option. Is there any way how to get permissions and use clipboard fully? Documentation mentions something about getting permissions, but I was never successful with it - is it possible or is it only for extensions?

所有回覆 (1)

more options

This page says that Firefox supports reading the clipboard only in browser extensions, using the "clipboardRead" extension permission.