File Block pdf embed works only with admin user
-
Versions: Gutenberg 11.4.1, WP 5.8, Browser Google Chrome
Embedding a PDF File with admin permissions works ok,
See https://proto.vtad.de/2021/09/09/test/Editor code `<!– wp:file {“id”:160,”href”:”https://proto.vtad.de/wp-content/uploads/2021/09/Pdf-Dateien-im-Block-Editor-anzeigen.pdf”,”showDownloadButton”:false,”displayPreview”:true} –>
<div class=”wp-block-file”><object class=”wp-block-file__embed” data=”https://proto.vtad.de/wp-content/uploads/2021/09/Pdf-Dateien-im-Block-Editor-anzeigen.pdf” type=”application/pdf” style=”width:100%;height:600px” aria-label=”Embed of Pdf-Dateien-im-Block-Editor-anzeigen.”></object><a href=”https://proto.vtad.de/wp-content/uploads/2021/09/Pdf-Dateien-im-Block-Editor-anzeigen.pdf”>Pdf-Dateien-im-Block-Editor-anzeigen</a></div>
<!– /wp:file –>`but doing the same as an user with author role does not show the Preview,
also re editing displays an “Attempt block recovery error”See https://proto.vtad.de/2021/09/09/test-2/
Editor code`<!– wp:file {“id”:160,”href”:”https://proto.vtad.de/wp-content/uploads/2021/09/Pdf-Dateien-im-Block-Editor-anzeigen.pdf”,”showDownloadButton”:false,”displayPreview”:true} –>
<div class=”wp-block-file”><a href=”https://proto.vtad.de/wp-content/uploads/2021/09/Pdf-Dateien-im-Block-Editor-anzeigen.pdf”>Pdf-Dateien-im-Block-Editor-anzeigen</a></div>
<!– /wp:file –>`The page I need help with: [log in to see the link]
- The topic ‘File Block pdf embed works only with admin user’ is closed to new replies.