Is there any way to access the clipboard from within a plugin, the usual JavaScript API does not work:
navigator.clipboard.writeText("test");
Is there any way to access the clipboard from within a plugin, the usual JavaScript API does not work:
navigator.clipboard.writeText("test");
navigator
is a shortcut for window.navigator
. But plugins don’t run on the usual window
. Try using parent
, thus parent.navigator.clipboard.writeText("test");