Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
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
config/EmbeddedMedia.config
Hope that helps,
Matt
Hi Matt,
Thanks for the answer. So I need to override all the embedproviders with my own where I want the div?
Frans
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.
Hi guys
Then it will override all RTEs on the site?
Alex
Yes it will override all the embed options for the site
Thanks Matthew,
Will try this out!!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
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
Hi Matt,
Thanks for the answer. So I need to override all the embedproviders with my own where I want the div?
Frans
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
Hi guys
Then it will override all RTEs on the site?
Alex
Yes it will override all the embed options for the site
Thanks Matthew,
Will try this out!!
is working on a reply...