Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Please, use CSS selectors in the output of the filter. I'm aware of #369674: Wrap output in DIV tag, however there are so many CSS-only themes out there, and having to create a theme function/template for them is overkill.
Something like:
<object class="filtered-video left" type="application/x-shockwave-flash"...</object>
For greater control of filtered videos, it would be a plus if unique classes are also defined:
<object class="filtered-video left video-youtube-1HFrmVq0Idw" type="application/x-shockwave-flash"...</object>
BTW, thanks for this great module.
Comment | File | Size | Author |
---|---|---|---|
#3 | video_filter_581370-2.patch | 2.52 KB | blackdog |
#2 | video_filter_581370.patch | 6.46 KB | anon |
Comments
Comment #1
anonlovely idea!
Comment #2
anonPatch:
<object class="video-filter video-filter-6928356" ...>...</object>
Vimeo http://vimeo.com/6928356
<object class="video-filter video-filter-5hXZxaGZ_Bo" ...>...</object>
Youtube http://www.youtube.com/watch?v=5hXZxaGZ_Bo
The class "video-filter-XXXXX" is dynamic and the value is defined in the codec file for every codec.
Comment #3
blackdog CreditAttribution: blackdog commentedI like the approach, but I don't like adding new code to every codec. I've taken a different approach, see attached patch.
This would also move video_filter.css up from the wysiwyg folder to the module root folder, so the alignment work.
Comment #4
blackdog CreditAttribution: blackdog commentedI've committed this.