🔒 Enables copy-to-clipboard for sites running in iframe modal / widget (#1207)

This commit is contained in:
Alicia Sykes 2023-06-11 10:58:02 +01:00
parent d96297e0f8
commit d469672527
3 changed files with 4 additions and 2 deletions

View File

@ -3,7 +3,8 @@
classes="dashy-modal">
<div slot="top-right" @click="hide()">Close</div>
<a @click="hide()" class="close-button" title="Close">x</a>
<iframe v-if="url" :src="url" @keydown.esc="close" class="frame" allow="fullscreen" />
<iframe v-if="url" :src="url" @keydown.esc="close" class="frame"
allow="fullscreen; clipboard-write" />
<div v-else class="no-url">No URL Specified</div>
</modal>
</template>

View File

@ -5,6 +5,7 @@
:src="frameUrl"
:id="frameId"
title="Iframe Widget"
allow="fullscreen; clipboard-write"
:style="frameHeight ? `height: ${frameHeight}px` : ''"
/>
</div>

View File

@ -1,6 +1,6 @@
<template>
<div class="web-content" :id="id">
<iframe :src="url" allow="fullscreen" />
<iframe :src="url" allow="fullscreen; clipboard-write" />
</div>
</template>