How can I change the styling of individual embedded URLs (like Youtube) in TinyMCE


We still use TinyMCE. We also use the oEmbedURL function all the time for Youtube videos. But on some videos, we would like to be able to style them individually. Eg. on some videos we would like to be able to add a class to the surrounding iframe or at least center the video.

Now with paragraphs, one can use the text align functions to do this, but that doesn’t work with Youtube URLs.

I see that there is a filter for oEmbedURL but that changes the code for -all- embedded videos.

So… is there a way to add a class to a -particular- Youtube link with TinyMCE? Or at least, make the alignment buttons work?

jchwebdev 2 years 2020-10-22T13:10:22-05:00 0 Answers 7 views 0

Leave an answer