Feature: #108648 - Option to modify src attribute for Vimeo/YouTube
See forge#108648
Description
The new configuration option src for the You
and Vimeo can be used to adjust the previously hard-coded src
attribute in the generated iframe HTML code. This can be helpful if
iframes shouldn't be loaded immediately because of privacy concerns,
in which case an alternative such as data- can be used in the
initial HTML markup.
Example:
<f:media
file="{youtubeVideo}"
additionalConfig="{srcAttribute: 'data-src'}"
/>
Copied!
Impact
The src attribute for YouTube and Vimeo embeds can now be renamed.