Jump to content

Widget:Copyable: Difference between revisions

5 bytes added ,  13:26, 20 December 2022
add explicit <a> element on the outside
(testing Widgets)
 
(add explicit <a> element on the outside)
Line 1: Line 1:
<pre onclick="javascript:(function(){this.select();document.execCommand('copy');}()"><code><!--{$contents|escape:'html'}--></code></pre>
<a href="javascript:(function(){this.select();document.execCommand('copy');})()"><pre><code><!--{$contents|escape:'html'}--></code></pre></a>