Interesting - it seems that content outside the current fullscreen element is not usable...
Here an alternative implementation that creates the textarea inside krpano and so inside the fullscreen element, then it works:
|
Quellcode
|
1
2
3
4
5
6
7
8
|
<action name="copy_to_clipboard" type="Javascript"><![CDATA[
var textarea = document.createElement('textarea');
textarea.value = args[1];
krpano.display.viewerlayer.appendChild(textarea);
textarea.select();
document.execCommand('copy');
krpano.display.viewerlayer.removeChild(textarea);
]]></action>
|