New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preview of audios and videos is not rendering #8004
Comments
@soupette @HichamELBSI AFAIK there isn't much we can do on this can we since those are stored in AWS-S3, the client would need to fetch the files and cache them locally to actually see the preview? |
There's not much we can do, reading audio and video files in markdown is kinda not supported. I have found a plugin for markdown-it : markdown-it-video that enables youtube videos and more that a user can install in the editor but that's all what's supported. However, you can read audio file, (I'm guessing you can do the same with videos) with html: |
This may be something when we move over to an actual rich-text style field, I know @alexandrebodin had some ideas in the past but I'm not sure when we plan to implement something besides markdown (though I remember something about us avoiding storing HTML directly in the database) |
I remember addressing the issue of script injection such as
But the lib we are using as an option to prevent such behaviour and also supports some HTML so the preview is a bit better than it used to be. However, audio and video preview is not very common in markdown for instance the GitHub md preview that we are currently using does not support it. I think that we can close this issue, don't you @derrickmehaffy ? |
Yeah for now will mark as closed until we have a larger discussion about rich text in general. |
Describe the bug
I am trying to make a blog post using Strapi editor. When I upload media files like image, audio, video etc, then it gets displayed as a markdown.
But when I switch to preview for the same all I can see the preview as broken links.
audio
video
Steps to reproduce the behavior
Expected behavior
Just like images, the editor should be able to preview audio and video files.
Screenshots
System
The text was updated successfully, but these errors were encountered: