Copied to clipboard

Flag this post as spam?

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


  • Frans de Jong 522 posts 1762 karma points c-trib
    Jan 24, 2018 @ 16:01
    Frans de Jong
    0

    Control html of embed in tinymce

    Hi all,

    Is it possible to control the html output of the tinymce embed? I'd like a div around it with at least a classname embed.

    Thanks

  • Matthew Wise 257 posts 1182 karma points MVP c-trib
    Jan 24, 2018 @ 16:13
    Matthew Wise
    101

    Hi,

    You would need to create custom versions of the providers in the namespace

    Umbraco.Web.Media.EmbedProviders

    You can see which ones are used for each embed type in config/EmbeddedMedia.config

    Hope that helps,

    Matt

  • Frans de Jong 522 posts 1762 karma points c-trib
    Jan 24, 2018 @ 16:16
    Frans de Jong
    0

    Hi Matt,

    Thanks for the answer. So I need to override all the embedproviders with my own where I want the div?

    Frans

  • Matthew Wise 257 posts 1182 karma points MVP c-trib
    Jan 24, 2018 @ 16:19
    Matthew Wise
    0

    Hi Frans,

    Yep, you can just call them base one you are overriding then wrap a div element around the output,

    You will need to update the config file to point at your version as well.

    Matt

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    Jan 24, 2018 @ 16:46
    Alex Skrypnyk
    0

    Hi guys

    Then it will override all RTEs on the site?

    Alex

  • Matthew Wise 257 posts 1182 karma points MVP c-trib
    Jan 24, 2018 @ 16:48
    Matthew Wise
    1

    Yes it will override all the embed options for the site

  • Frans de Jong 522 posts 1762 karma points c-trib
    Jan 25, 2018 @ 10:26
    Frans de Jong
    0

    Thanks Matthew,

    Will try this out!!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies