torchbox / wagtailmedia

A Wagtail module for managing video and audio files within the admin
https://pypi.org/project/wagtailmedia/
BSD 3-Clause "New" or "Revised" License
233 stars 70 forks source link

Feature Request: Embed media in rich text fields using Draftail #80

Open glitchwolfe opened 4 years ago

glitchwolfe commented 4 years ago

Users should be able to embed Media objects into their content the same way they do Documents/Images. At the time of choosing, they should also be able to select if they want the video to autoplay, loop, and mute (similar to image formats).

I managed to get something like this working on one of my wagtail projects by reverse-engineering the existing modal chooser workflow for wagtailimages/documents, and would love to have this feature in a more official capacity. My solution is pretty hacky and doesn't use JSX or have unit tests, but I would be glad to help get this working in wagtailmedia once I have some time off.

Here are a few example screenshots:

Toolbar button Chooser modal Format chooser Embedded media
zerolab commented 4 years ago

Thank you @juan0tron, that would be a rather nice addition!

thenewguy commented 4 years ago

That would be an awesome addition!

glitchwolfe commented 4 years ago

Sorry for the long wait! I've finally found the time to port my code over to this repo. There are some things that need to be addressed before I think it's ready to be merged in - advice on the best way to approach those issues would be much appreciated!

PR Here

Jon

thibaudcolas commented 4 years ago

I would love to help with this but have been struggling to find time for this project lately – so if others beat me to reviewing #90 then great. In any case this is looking very impressive @juan0tron!

thibaudcolas commented 4 years ago

I’ve done an initial review review of #90. I think more feedback on the approach (not necessarily the details of the implementation) would be helpful.

ordigital commented 6 months ago

Is there a working solution for this?