1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-25 14:50:29 +00:00

Collabora: Fix clipboard issue. Fixes #8209 (#8210)

This commit is contained in:
Alexandre Chataignon
2025-09-17 04:56:34 +02:00
committed by GitHub
parent ba2e878f1b
commit 31ab895abc
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ class FileContent extends React.Component {
return ( return (
<div className="file-view-content flex-1 p-0 border-0"> <div className="file-view-content flex-1 p-0 border-0">
<iframe title={fileName} id="office-frame" name="office_frame" className="d-none" allowFullScreen></iframe> <iframe title={fileName} id="office-frame" name="office_frame" className="d-none" allowFullScreen allow="clipboard-read *; clipboard-write *"></iframe>
<form id="office-form" name="office_form" target="office_frame" action={actionURL} method="post"> <form id="office-form" name="office_form" target="office_frame" action={actionURL} method="post">
<input name="access_token" value={accessToken} type="hidden" /> <input name="access_token" value={accessToken} type="hidden" />
<input name="access_token_ttl" value={accessTokenTtl} type="hidden" /> <input name="access_token_ttl" value={accessTokenTtl} type="hidden" />

View File

@@ -36,7 +36,7 @@
<input name="access_token_ttl" value="{{access_token_ttl}}" type="hidden"/> <input name="access_token_ttl" value="{{access_token_ttl}}" type="hidden"/>
</form> </form>
<iframe id="office_frame" name="office_frame" class="hide" allowfullscreen ></iframe> <iframe id="office_frame" name="office_frame" class="hide" allowfullscreen allow="clipboard-read *; clipboard-write *"></iframe>
<script type="text/javascript" src="{% static "scripts/lib/jquery.min.js" %}"></script> <script type="text/javascript" src="{% static "scripts/lib/jquery.min.js" %}"></script>
<script type="text/javascript" src="{{ MEDIA_URL }}js/base.js?t=1536127546642"></script> <script type="text/javascript" src="{{ MEDIA_URL }}js/base.js?t=1536127546642"></script>