🔀 Merge pull request #1221 from Lissy93/FEAT/update-iframe-permissions

[Feature] Allow copy to clipboard within iframe
Closes #1207
This commit is contained in:
Alicia Sykes 2023-06-11 11:08:56 +01:00 committed by GitHub
commit 51a9b4bfbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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>