Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • blackhawk 313 posts 1368 karma points
    Feb 18, 2018 @ 06:12
    blackhawk
    1

    Customizing how videos are embedded within an RTE

    Within Umbraco 7, when working with the embed option in an RTE, When an editor clicks on the embed icon, I would like RTE to add an iframe video source code like this...

    <div class="embed-responsive embed-responsive-16by9">
    <iframe class="embed-responsive-item" width="..." height="..." src="the-youtube-video-address" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
    </div>
    

    This is Bootstrap's formula for responsive video embeds. I don't want editors to put in this code manually every-time when they need to add a video. I would prefer for this code to automatically load into the RTE when an editor clicks the embed icon option.

    Is this possible?

  • Nigel Wilson 945 posts 2077 karma points
    Feb 18, 2018 @ 18:19
    Nigel Wilson
    0

    Hi Blackhawk

    I assume you are referring to the standard RTE and not the grid ?

    If using the RTE, probably the easiest solution is to use a macro and have the code inserted that way.

    If using the grid you can create a custom embed video option for the grid and render the code out the way you want. I have used the Le Blender package and found it awesome for adding custom snippets to the grid.

    Cheers, Nigel

  • Kunal 19 posts 116 karma points
    Feb 14, 2019 @ 18:36
Please Sign in or register to post replies

Write your reply to:

Draft