sunnysideup / fix-videos-for-ss4
Fix videos when moving them from SS3 to SS4
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:silverstripe-vendormodule
Requires
- silverstripe/cms: ^4.0 || ^5.0
This package is auto-updated.
Last update: 2024-09-11 08:30:41 UTC
README
Fixes embedded videos in SS3 to the new format in SS4
Replaces:
<p> <iframe foor="bar" src="https://www.youtube.com/embed/ANYCODEHERE" frameborder="0" foo2="bar2"></iframe> </p>
With:
<div thumbnail="https://i.ytimg.com/vi/ANYCODEHERE/hqdefault.jpg" class="ss-htmleditorfield-file embed"> <iframe src="https://www.youtube.com/embed/ANYCODEHERE?feature=oembed" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""></iframe> </div>
And similar for Vimeo