Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Youtube responsive TinyMCE

Asked Modified Viewed 1,352 times
L
lifeguard
L
  • Member, joined since
  • Contributed 113 posts on the community forums.
  • Started 27 threads in the forums
  • Started this discussions
asked
Member

Hi,

when i use TinyMCE as editor in blogs and news, i can put a youtube video. But its not responsive.
my visitors are for 80% in a mobile device, so it would be nice to make it responsive.

is there a easy workaround for this?

Sorry, found the solution here.
https://www.php-fusion.co.uk/infusions/forum/viewthread.php?thread_id=39041&pid=204868#post_204868
Edited by lifeguard on 07-01-2019 15:59,
0 replies

4 posts

R
Anonymous User
R
Anonymous User 367
  • Veteran Member, joined since
  • Contributed 939 posts on the community forums.
  • Started 2 threads in the forums
  • Answered 20 questions
answered
Veteran Member


<div class="embed-responsive embed-responsive-16by9">
 <iframe class="embed-responsive-item" src="https://www.youtube.com/embed/VIDEO_ID" allowfullscreen></iframe>
</div>
1 reply
R
Anonymous User
R
Anonymous User 367
  • Veteran Member, joined since
  • Contributed 939 posts on the community forums.
  • Started 2 threads in the forums
  • Answered 20 questions
answered
Veteran Member

yes, and does not require any unnecessary css because is from Bootstrap
0 replies
L
lifeguard
L
  • Member, joined since
  • Contributed 113 posts on the community forums.
  • Started 27 threads in the forums
  • Started this discussions
answered
Member

Ok, good to hear.

But, if i use that code, i have to write that code everytime i write a new blog or something.
0 replies
I
ikandi
I
ikandi 10
  • Junior Member, joined since
  • Contributed 48 posts on the community forums.
  • Started 15 threads in the forums
answered
Junior Member

Yes, this is the responsive code I use as well, for YouTube in articles, news etc.
Doesn't work in Forums or Comments though, due to BBC Code.
For my Comments section, I also add a public instance of Disqus, and have the Div Code set up as a panel.
Works great, including auto responsive for video.
1 reply

Labels

None yet

Statistics

  • Views 0 views
  • Posts 4 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

L
L
  • Member, joined since
  • Contributed 113 posts on the community forums.
  • Started 27 threads in the forums
  • Started this discussions
R
R
Anonymous User 367
  • Veteran Member, joined since
  • Contributed 939 posts on the community forums.
  • Started 2 threads in the forums
  • Answered 20 questions
I
I
ikandi 10
  • Junior Member, joined since
  • Contributed 48 posts on the community forums.
  • Started 15 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet